public final class NormalizationChecker extends Object implements CharacterHandler
Constructor and Description |
---|
NormalizationChecker(Locator locator)
Constructor with mode selection.
|
Modifier and Type | Method and 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(String message)
Emit an error.
|
void |
setErrorHandler(ErrorHandler errorHandler) |
void |
start()
Signals the start of the stream.
|
public NormalizationChecker(Locator locator)
sourceTextMode
- whether the source text-related messages
should be enabled.public void err(String message) throws SAXException
message
- the error messageSAXException
- if something goes wrongpublic void start()
CharacterHandler
start
in interface CharacterHandler
CharacterHandler.start()
public void characters(char[] ch, int start, int length) throws SAXException
CharacterHandler
characters
in interface CharacterHandler
ch
- the bufferstart
- start index in the bufferlength
- the number of characters to process starting from start
SAXException
- if things go wrongCharacterHandler.characters(char[], int, int)
public void end() throws SAXException
CharacterHandler
end
in interface CharacterHandler
SAXException
- if things go wrongCharacterHandler.end()
public void setErrorHandler(ErrorHandler errorHandler)
Copyright © 2017. All rights reserved.