Localizable, Parserpublic class NumberListParser extends NumberParser
| Modifier and Type | Field | Description |
|---|---|---|
protected NumberListHandler |
numberListHandler |
The number list handler used to report parse events.
|
BUNDLE_CLASSNAME, current, errorHandler, localizableSupport, reader| Constructor | Description |
|---|---|
NumberListParser() |
Creates a new instance of NumberListParser
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
doParse() |
Parses the given reader.
|
NumberListHandler |
getNumberListHandler() |
Returns the number list handler in use.
|
void |
setNumberListHandler(NumberListHandler handler) |
Allows an application to register a number list handler.
|
createErrorMessage, formatMessage, getBundleClassName, getCurrent, getLocale, parse, parse, parse, reportCharacterExpectedError, reportError, reportUnexpectedCharacterError, setErrorHandler, setLocale, skipCommaSpaces, skipSpacesbuildFloat, parseFloatprotected NumberListHandler numberListHandler
public NumberListParser()
public void setNumberListHandler(NumberListHandler 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 number list handler.public NumberListHandler getNumberListHandler()
protected void doParse()
throws ParseException,
java.io.IOException
doParse in class AbstractParserParseExceptionjava.io.IOExceptionCopyright ? 2018 Apache Software Foundation. All Rights Reserved.