README.md in tika-app-0.2.0 vs README.md in tika-app-0.2.1
- old
+ new
@@ -26,12 +26,16 @@
```ruby
Tika::App.path = "/path/to/tika-app.jar"
```
+Alternatively, you can set the `TIKA_APP` environment variable to the jar file path.
+
## Usage
```ruby
+> require "tika/app"
+ => true
> resource = Tika::Resource.new("README.md")
=> #<Tika::Resource:0x007f996a04fbe0 @file="README.md", @app=#<Tika::App:0x007f996a04fb68 @path="/path/to/tika-app.jar">, @opts={}>
> resource.metadata
=> {"Content-Encoding"=>"ISO-8859-1", "Content-Length"=>"580", "Content-Type"=>"text/plain; charset=ISO-8859-1", "X-Parsed-By"=>["org.apache.tika.parser.DefaultParser", "org.apache.tika.parser.txt.TXTParser"], "resourceName"=>"README.md"}
> resource.language