AbstractParser
, NumberParser
, PathParser
, PointsParser
public interface Parser
Modifier and Type | Method | Description |
---|---|---|
void |
parse(java.lang.String s) |
Parses the given string
|
void |
setErrorHandler(ErrorHandler handler) |
Allows an application to register an error event handler.
|
void parse(java.lang.String s) throws ParseException
ParseException
void setErrorHandler(ErrorHandler handler)
If the application does not register an error event handler, all error events reported by the parser will cause an exception to be thrown.
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 error handler.Copyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.