Module: Rika

Defined in:
lib/rika.rb,
lib/rika/version.rb

Overview

Heavily based on the Apache Tika API: tika.apache.org/1.5/api/org/apache/tika/Tika.html

Defined Under Namespace

Classes: Parser, Translator

Constant Summary collapse

VERSION =
"1.9.0"

Class Method Summary collapse

Class Method Details

.parse_content(file_location, max_content_length = -1)) ⇒ Object



39
40
41
42
# File 'lib/rika.rb', line 39

def self.parse_content(file_location, max_content_length = -1)
  parser = Parser.new(file_location, max_content_length)
  parser.content
end

.parse_content_and_metadata(file_location, max_content_length = -1)) ⇒ Object



34
35
36
37
# File 'lib/rika.rb', line 34

def self.(file_location, max_content_length = -1)
  parser = Parser.new(file_location, max_content_length)
  [parser.content, parser.]
end

.parse_main_content(file_location, max_content_length = -1)) ⇒ Object



44
45
46
47
# File 'lib/rika.rb', line 44

def self.parse_main_content(file_location, max_content_length = -1)
  parser = Parser.new(file_location, max_content_length)
  parser.main_content
end

.parse_metadata(file_location) ⇒ Object



49
50
51
52
# File 'lib/rika.rb', line 49

def self.(file_location)
  parser = Parser.new(file_location, 0)
  parser.
end