public abstract class BaseFileParser extends Object implements IFileParser
IFileParser
.Constructor and Description |
---|
BaseFileParser() |
Modifier and Type | Method and Description |
---|---|
String |
extract(File inputFile) |
String |
extract(File inputFile,
Charset charset) |
String |
extract(InputStream inputStream)
Extract text from an input stream.
|
abstract String |
extract(InputStream inputStream,
Charset charset) |
protected boolean |
inferCharset() |
public abstract String extract(InputStream inputStream, Charset charset) throws ParseException
extract
in interface IFileParser
ParseException
public String extract(File inputFile, Charset charset) throws ParseException, FileNotFoundException
extract
in interface IFileParser
ParseException
FileNotFoundException
protected boolean inferCharset()
public String extract(File inputFile) throws ParseException
extract
in interface IFileParser
ParseException
public String extract(InputStream inputStream) throws ParseException, IOException
IFileParser
extract
in interface IFileParser
inputStream
- the input stream.ParseException
- if an error occurred while parsing
stream content.IOException
- if an I/O error occurred.LumisXP 12.2.0.200122 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.