public class Parser extends Object
Constructor and Description |
---|
Parser()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
parseWithCharsetDetection(String startingCharset,
InputStream inputStream,
CharacterReceiver characterReceiver)
Parse an input stream with character set detection.
|
void |
parseWithoutCharsetDetection(String startingCharset,
InputStream inputStream,
CharacterReceiver characterReceiver)
Parse an input stream without character set detection.
|
public Parser()
public void parseWithCharsetDetection(String startingCharset, InputStream inputStream, CharacterReceiver characterReceiver) throws IOException, ManifoldCFException
startingCharset
- is the starting character set. Pass null if this is unknown.inputStream
- is the input stream. It is the caller's responsibility to close the stream when the parse is done.characterReceiver
- is the character receiver that will actually do the parsing.IOException
ManifoldCFException
public void parseWithoutCharsetDetection(String startingCharset, InputStream inputStream, CharacterReceiver characterReceiver) throws IOException, ManifoldCFException
startingCharset
- is the starting character set. If null is passed, the code will presume utf-8.inputStream
- is the input stream. It is the caller's responsibility to close the stream when the parse is done.characterReceiver
- is the character receiver that will actually do the parsing.IOException
ManifoldCFException