public abstract class MetaScanner
extends java.lang.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(java.lang.String encoding)
Tries to switch to an encoding.
|
protected ByteReadable readable
protected int stateSave
protected int read()
throws java.io.IOException
java.io.IOExceptionprotected final void stateLoop(int state)
throws org.xml.sax.SAXException,
java.io.IOException
org.xml.sax.SAXExceptionjava.io.IOExceptionprotected abstract boolean tryCharset(java.lang.String encoding)
throws org.xml.sax.SAXException
encoding - true if successfulorg.xml.sax.SAXException