public class MetaSniffer extends MetaScanner implements Locator
readable, stateSave| Constructor and Description |
|---|
MetaSniffer(ErrorHandler eh,
Locator locator) |
| Modifier and Type | Method and Description |
|---|---|
int |
getColumnNumber() |
int |
getLineNumber() |
String |
getPublicId() |
String |
getSystemId() |
protected int |
read()
-1 means end.
|
Encoding |
sniff(ByteReadable readable)
Main loop.
|
protected boolean |
tryCharset(String encoding)
Tries to switch to an encoding.
|
stateLooppublic MetaSniffer(ErrorHandler eh, Locator locator)
protected int read()
throws IOException
read in class MetaScannerIOExceptionpublic Encoding sniff(ByteReadable readable) throws SAXException, IOException
SAXExceptionIOExceptionpublic int getColumnNumber()
getColumnNumber in interface Locatorpublic int getLineNumber()
getLineNumber in interface Locatorpublic String getPublicId()
getPublicId in interface Locatorpublic String getSystemId()
getSystemId in interface Locatorprotected boolean tryCharset(String encoding) throws SAXException
MetaScannertryCharset in class MetaScannertrue if successfulSAXExceptionCopyright © 2017. All rights reserved.