Class NumberListParser
java.lang.Object
org.apache.batik.parser.AbstractParser
org.apache.batik.parser.NumberParser
org.apache.batik.parser.NumberListParser
- All Implemented Interfaces:
Localizable, Parser
This class implements an event-based parser for the SVG Number
list values.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected NumberListHandlerThe number list handler used to report parse events.Fields inherited from class AbstractParser
BUNDLE_CLASSNAME, current, errorHandler, localizableSupport, reader -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoParse()Parses the given reader.Returns the number list handler in use.voidsetNumberListHandler(NumberListHandler handler) Allows an application to register a number list handler.Methods inherited from class NumberParser
buildFloat, parseFloatMethods inherited from class AbstractParser
createErrorMessage, formatMessage, getBundleClassName, getCurrent, getLocale, parse, parse, parse, reportCharacterExpectedError, reportError, reportUnexpectedCharacterError, setErrorHandler, setLocale, skipCommaSpaces, skipSpaces
-
Field Details
-
numberListHandler
The number list handler used to report parse events.
-
-
Constructor Details
-
NumberListParser
public NumberListParser()Creates a new instance of NumberListParser
-
-
Method Details
-
setNumberListHandler
Allows an application to register a number list 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.
- Parameters:
handler- The number list handler.
-
getNumberListHandler
Returns the number list handler in use. -
doParse
Parses the given reader.- Specified by:
doParsein classAbstractParser- Throws:
ParseExceptionIOException
-