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 TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) Receive notification of a run of UTF-16 code units.void
end()
Signals the end of the stream.void
Emit an error.void
setErrorHandler
(ErrorHandler errorHandler) void
start()
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:CharacterHandler
Signals the start of the stream. Can be used for setup.- Specified by:
start
in interfaceCharacterHandler
- See Also:
-
characters
Description copied from interface:CharacterHandler
Receive notification of a run of UTF-16 code units.- Specified by:
characters
in 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:CharacterHandler
Signals the end of the stream. Can be used for cleanup. Doesn't mean that the stream ended successfully.- Specified by:
end
in interfaceCharacterHandler
- Throws:
SAXException
- if things go wrong- See Also:
-
setErrorHandler
-