public class Parser
extends java.lang.Object
Constructor and Description |
---|
Parser()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
parseWithCharsetDetection(java.lang.String startingCharset,
java.io.InputStream inputStream,
CharacterReceiver characterReceiver)
Parse an input stream with character set detection.
|
void |
parseWithoutCharsetDetection(java.lang.String startingCharset,
java.io.InputStream inputStream,
CharacterReceiver characterReceiver)
Parse an input stream without character set detection.
|
public Parser()
public void parseWithCharsetDetection(java.lang.String startingCharset, java.io.InputStream inputStream, CharacterReceiver characterReceiver) throws java.io.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.java.io.IOException
ManifoldCFException
public void parseWithoutCharsetDetection(java.lang.String startingCharset, java.io.InputStream inputStream, CharacterReceiver characterReceiver) throws java.io.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.java.io.IOException
ManifoldCFException