Package nu.validator.htmlparser.common
Interface CharacterHandler
- All Known Implementing Classes:
NormalizationChecker
public interface CharacterHandler
An interface for receiving notifications of UTF-16 code units read from a character stream.
- Version:
- $Id$
-
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
start()
Signals the start of the stream.
-
Method Details
-
characters
Receive notification of a run of UTF-16 code units.- Parameters:
ch
- the bufferstart
- start index in the bufferlength
- the number of characters to process starting fromstart
- Throws:
SAXException
- if things go wrong
-
end
Signals the end of the stream. Can be used for cleanup. Doesn't mean that the stream ended successfully.- Throws:
SAXException
- if things go wrong
-
start
Signals the start of the stream. Can be used for setup.- Throws:
SAXException
- if things go wrong
-