Class: Ddr::FileTools::Tika
- Defined in:
- lib/ddr/filetools/tika.rb
Class Attribute Summary collapse
-
.tika_path ⇒ Object
Path to tika-app.jar.
Instance Method Summary collapse
Methods inherited from Provider
Class Attribute Details
.tika_path ⇒ Object
Path to tika-app.jar
9 10 11 |
# File 'lib/ddr/filetools/tika.rb', line 9 def tika_path @tika_path end |
Instance Method Details
#metadata(file_path) ⇒ Object
18 19 20 |
# File 'lib/ddr/filetools/tika.rb', line 18 def (file_path) call command(file_path, "--metadata", "--xml") end |
#text(file_path) ⇒ Object
14 15 16 |
# File 'lib/ddr/filetools/tika.rb', line 14 def text(file_path) call command(file_path, "--text") end |