Class: Ddr::FileTools::Tika

Inherits:
Provider show all
Defined in:
lib/ddr/filetools/tika.rb

Class Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Provider

#call

Class Attribute Details

.tika_pathObject

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