public abstract class MetaScanner extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ByteReadable |
readable
The data source.
|
protected int |
stateSave
The tokenizer state.
|
| Constructor and Description |
|---|
MetaScanner() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
read()
Reads a byte from the data source.
|
protected void |
stateLoop(int state)
The runs the meta scanning algorithm.
|
protected abstract boolean |
tryCharset(String encoding)
Tries to switch to an encoding.
|
protected ByteReadable readable
protected int stateSave
protected int read()
throws IOException
IOExceptionprotected final void stateLoop(int state)
throws SAXException,
IOException
SAXExceptionIOExceptionprotected abstract boolean tryCharset(String encoding) throws SAXException
encoding - true if successfulSAXExceptionCopyright © 2017. All rights reserved.