Package nu.validator.htmlparser.io
Class MetaSniffer
java.lang.Object
nu.validator.htmlparser.impl.MetaScanner
nu.validator.htmlparser.io.MetaSniffer
-
Field Summary
Fields inherited from class nu.validator.htmlparser.impl.MetaScanner
readable, stateSave -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintintprotected intread()-1 means end.sniff(ByteReadable readable) Main loop.protected booleantryCharset(String encoding) Tries to switch to an encoding.Methods inherited from class nu.validator.htmlparser.impl.MetaScanner
stateLoop
-
Constructor Details
-
MetaSniffer
-
-
Method Details
-
read
-1 means end.- Overrides:
readin classMetaScanner- Returns:
- Throws:
IOException
-
sniff
Main loop.- Returns:
- Throws:
SAXExceptionIOException
-
getColumnNumber
public int getColumnNumber()- Specified by:
getColumnNumberin interfaceLocator
-
getLineNumber
public int getLineNumber()- Specified by:
getLineNumberin interfaceLocator
-
getPublicId
- Specified by:
getPublicIdin interfaceLocator
-
getSystemId
- Specified by:
getSystemIdin interfaceLocator
-
getXMLVersion
- Specified by:
getXMLVersionin interfaceLocator2
-
getEncoding
- Specified by:
getEncodingin interfaceLocator2
-
tryCharset
Description copied from class:MetaScannerTries to switch to an encoding.- Specified by:
tryCharsetin classMetaScanner- Parameters:
encoding-- Returns:
trueif successful- Throws:
SAXException
-