Parserpublic class PointsParser extends NumberParser
| Modifier and Type | Field | Description |
|---|---|---|
protected boolean |
eRead |
Whether the last character was a 'e' or 'E'.
|
protected PointsHandler |
pointsHandler |
The points handler used to report parse events.
|
BUNDLE_CLASSNAME, current, errorHandler, reader| Constructor | Description |
|---|---|
PointsParser(PointsHandler handler) |
Creates a new PointsParser.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected void |
doParse() |
Parses the current stream.
|
PointsHandler |
getPointsHandler() |
Returns the points handler in use.
|
void |
setPointsHandler(PointsHandler handler) |
Allows an application to register a points handler.
|
createErrorMessage, getBundleClassName, getCurrent, parse, reportCharacterExpectedError, reportError, reportUnexpectedCharacterError, setErrorHandler, skipCommaSpaces, skipSpacesbuildFloat, parseFloatprotected PointsHandler pointsHandler
protected boolean eRead
public PointsParser(PointsHandler handler)
public void setPointsHandler(PointsHandler 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 PointsHandler getPointsHandler()
protected void doParse()
throws ParseException,
java.io.IOException
doParse in class AbstractParserParseExceptionjava.io.IOExceptionCopyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.