Package nu.validator.htmlparser.extra
Class NormalizationChecker
- java.lang.Object
-
- nu.validator.htmlparser.extra.NormalizationChecker
-
- All Implemented Interfaces:
CharacterHandler
public final class NormalizationChecker extends java.lang.Object implements CharacterHandler
- Version:
- $Id$
- Author:
- hsivonen
-
-
Constructor Summary
Constructors Constructor Description NormalizationChecker(org.xml.sax.Locator locator)Constructor with mode selection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] ch, int start, int length)Receive notification of a run of UTF-16 code units.voidend()Signals the end of the stream.voiderr(java.lang.String message)Emit an error.voidsetErrorHandler(org.xml.sax.ErrorHandler errorHandler)voidstart()Signals the start of the stream.
-
-
-
Method Detail
-
err
public void err(java.lang.String message) throws org.xml.sax.SAXExceptionEmit an error. The locator is used.- Parameters:
message- the error message- Throws:
org.xml.sax.SAXException- if something goes wrong
-
start
public void start()
Description copied from interface:CharacterHandlerSignals the start of the stream. Can be used for setup.- Specified by:
startin interfaceCharacterHandler- See Also:
CharacterHandler.start()
-
characters
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXExceptionDescription copied from interface:CharacterHandlerReceive notification of a run of UTF-16 code units.- Specified by:
charactersin interfaceCharacterHandler- Parameters:
ch- the bufferstart- start index in the bufferlength- the number of characters to process starting fromstart- Throws:
org.xml.sax.SAXException- if things go wrong- See Also:
CharacterHandler.characters(char[], int, int)
-
end
public void end() throws org.xml.sax.SAXExceptionDescription copied from interface:CharacterHandlerSignals the end of the stream. Can be used for cleanup. Doesn't mean that the stream ended successfully.- Specified by:
endin interfaceCharacterHandler- Throws:
org.xml.sax.SAXException- if things go wrong- See Also:
CharacterHandler.end()
-
setErrorHandler
public void setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
-
-