Package nu.validator.htmlparser.common
Interface EncodingDeclarationHandler
-
- All Known Implementing Classes:
Driver
public interface EncodingDeclarationHandler
An interface for communicating about character encoding names with the environment of the parser.- Version:
- $Id$
- Author:
- hsivonen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getCharacterEncoding()
Queries the environment for the encoding in use (for error reporting).boolean
internalEncodingDeclaration(java.lang.String charset)
Indicates that the parser has found an internal encoding declaration with the charset valuecharset
.
-
-
-
Method Detail
-
internalEncodingDeclaration
boolean internalEncodingDeclaration(java.lang.String charset) throws org.xml.sax.SAXException
Indicates that the parser has found an internal encoding declaration with the charset valuecharset
.- Parameters:
charset
- the charset name found.- Returns:
true
if the value ofcharset
was an encoding name for a supported ASCII-superset encoding.- Throws:
org.xml.sax.SAXException
- if something went wrong
-
getCharacterEncoding
java.lang.String getCharacterEncoding() throws org.xml.sax.SAXException
Queries the environment for the encoding in use (for error reporting).- Returns:
- the encoding in use
- Throws:
org.xml.sax.SAXException
- if something went wrong
-
-