Localizable, ParserLengthListParserpublic class LengthParser extends AbstractParser
| Modifier and Type | Field | Description |
|---|---|---|
protected LengthHandler |
lengthHandler |
The length handler used to report parse events.
|
BUNDLE_CLASSNAME, current, errorHandler, localizableSupport, reader| Constructor | Description |
|---|---|
LengthParser() |
Creates a new LengthParser.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
doParse() |
Method responsible for actually parsing data after AbstractParser
has initialized itself.
|
LengthHandler |
getLengthHandler() |
Returns the length handler in use.
|
protected void |
parseLength() |
Parses a length value.
|
void |
setLengthHandler(LengthHandler handler) |
Allows an application to register a length handler.
|
createErrorMessage, formatMessage, getBundleClassName, getCurrent, getLocale, parse, parse, parse, reportCharacterExpectedError, reportError, reportUnexpectedCharacterError, setErrorHandler, setLocale, skipCommaSpaces, skipSpacesprotected LengthHandler lengthHandler
public void setLengthHandler(LengthHandler handler)
If the application does not register a handler, all events reported by the parser will be silently ignored.
Applications may register a new or different handler in the middle of a parse, and the parser must begin using the new handler immediately.
handler - The transform list handler.public LengthHandler getLengthHandler()
protected void doParse()
throws ParseException,
java.io.IOException
AbstractParserdoParse in class AbstractParserParseExceptionjava.io.IOExceptionprotected void parseLength()
throws ParseException,
java.io.IOException
ParseExceptionjava.io.IOExceptionCopyright ? 2018 Apache Software Foundation. All Rights Reserved.