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 void
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
err(java.lang.String message)
Emit an error.void
setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
void
start()
Signals the start of the stream.
-
-
-
Method Detail
-
err
public void err(java.lang.String message) throws org.xml.sax.SAXException
Emit 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:CharacterHandler
Signals the start of the stream. Can be used for setup.- Specified by:
start
in interfaceCharacterHandler
- See Also:
CharacterHandler.start()
-
characters
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
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:
org.xml.sax.SAXException
- if things go wrong- See Also:
CharacterHandler.characters(char[], int, int)
-
end
public void end() throws org.xml.sax.SAXException
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:
org.xml.sax.SAXException
- if things go wrong- See Also:
CharacterHandler.end()
-
setErrorHandler
public void setErrorHandler(org.xml.sax.ErrorHandler errorHandler)
-
-