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

Constant Summary collapse

VERSION =
"1.6.1"

Class Method Summary collapse

Class Method Details

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



30
31
32
33
# File 'lib/rika.rb', line 30

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



25
26
27
28
# File 'lib/rika.rb', line 25

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

.parse_metadata(file_location) ⇒ Object



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

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