Package nu.validator.htmlparser.extra
Class NormalizationChecker
java.lang.Object
nu.validator.htmlparser.extra.NormalizationChecker
- All Implemented Interfaces:
CharacterHandler
- Version:
- $Id$
- Author:
- hsivonen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcharacters(char[] ch, int start, int length) Receive notification of a run of UTF-16 code units.voidend()Signals the end of the stream.voidEmit an error.voidsetErrorHandler(ErrorHandler errorHandler) voidstart()Signals the start of the stream.
-
Constructor Details
-
NormalizationChecker
Constructor with mode selection.- Parameters:
sourceTextMode- whether the source text-related messages should be enabled.
-
-
Method Details
-
err
Emit an error. The locator is used.- Parameters:
message- the error message- Throws:
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:
-
characters
Description 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:
SAXException- if things go wrong- See Also:
-
end
Description 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:
SAXException- if things go wrong- See Also:
-
setErrorHandler
-