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.
|
stateLoop
public MetaSniffer(ErrorHandler eh, Locator locator)
protected int read() throws IOException
read
in class MetaScanner
IOException
public Encoding sniff(ByteReadable readable) throws SAXException, IOException
SAXException
IOException
public int getColumnNumber()
getColumnNumber
in interface Locator
public int getLineNumber()
getLineNumber
in interface Locator
public String getPublicId()
getPublicId
in interface Locator
public String getSystemId()
getSystemId
in interface Locator
protected boolean tryCharset(String encoding) throws SAXException
MetaScanner
tryCharset
in class MetaScanner
true
if successfulSAXException
Copyright © 2017. All rights reserved.