lumis.util.parse
Class TikaParser
java.lang.Object
lumis.util.parse.TikaParser
- All Implemented Interfaces:
- IFileParser
public class TikaParser
- extends Object
- implements IFileParser
Implementation for IFileParser
to deal with Parser
for most content-types.
- Since:
- 5.5.0
Constructor Summary |
TikaParser(org.apache.tika.parser.Parser parser)
Constructor for TikaParser |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TikaParser
public TikaParser(org.apache.tika.parser.Parser parser)
- Constructor for TikaParser
- Parameters:
parser
- - Since:
- 5.5.0
extract
public String extract(File inputFile)
throws ParseException,
FileNotFoundException
- Specified by:
extract
in interface IFileParser
- Throws:
ParseException
FileNotFoundException
extract
public String extract(File inputFile,
Charset charset)
throws ParseException,
FileNotFoundException
- Specified by:
extract
in interface IFileParser
- Throws:
ParseException
FileNotFoundException
extract
public String extract(InputStream inputtream,
Charset charset)
throws ParseException
- Specified by:
extract
in interface IFileParser
- Throws:
ParseException
extract
public String extract(InputStream inputStream)
throws ParseException,
IOException
- Description copied from interface:
IFileParser
- Extract text from an input stream.
- Specified by:
extract
in interface IFileParser
- Parameters:
inputStream
- the input stream.
- Returns:
- the text extracted.
- Throws:
ParseException
- if an error occurred while parsing
stream content.
IOException
- if an I/O error occurred.
Lumisportal 6.2.0.120405 - Copyright © 2006–2012 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.