Package org.apache.batik.parser
Class AngleParser
java.lang.Object
org.apache.batik.parser.AbstractParser
org.apache.batik.parser.NumberParser
org.apache.batik.parser.AngleParser
- All Implemented Interfaces:
Localizable
,Parser
This class implements an event-based parser for the SVG angle
values.
- Version:
- $Id: AngleParser.java 1802297 2017-07-18 13:58:12Z ssteiner $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected AngleHandler
The angle handler used to report parse events.Fields inherited from class org.apache.batik.parser.AbstractParser
BUNDLE_CLASSNAME, current, errorHandler, localizableSupport, reader
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doParse()
Parses the current reader representing an angle.Returns the angle handler in use.void
setAngleHandler
(AngleHandler handler) Allows an application to register an angle handler.Methods inherited from class org.apache.batik.parser.NumberParser
buildFloat, parseFloat
Methods inherited from class org.apache.batik.parser.AbstractParser
createErrorMessage, formatMessage, getBundleClassName, getCurrent, getLocale, parse, parse, parse, reportCharacterExpectedError, reportError, reportUnexpectedCharacterError, setErrorHandler, setLocale, skipCommaSpaces, skipSpaces
-
Field Details
-
angleHandler
The angle handler used to report parse events.
-
-
Constructor Details
-
AngleParser
public AngleParser()
-
-
Method Details
-
setAngleHandler
Allows an application to register an angle 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 transform list handler.
-
getAngleHandler
Returns the angle handler in use. -
doParse
Parses the current reader representing an angle.- Specified by:
doParse
in classAbstractParser
- Throws:
ParseException
IOException
-