org.apache.batik.refimpl.parser
Class ConcreteAngleParser
java.lang.Object
|
+--org.apache.batik.refimpl.parser.AbstractParser
|
+--org.apache.batik.refimpl.parser.NumberParser
|
+--org.apache.batik.refimpl.parser.ConcreteAngleParser
- All Implemented Interfaces:
- AngleParser, Localizable, Parser
- public class ConcreteAngleParser
- extends NumberParser
- implements AngleParser
This class implements an event-based parser for the SVG angle
values.
Methods inherited from class org.apache.batik.refimpl.parser.AbstractParser |
createErrorMessage, formatMessage, getBundleClassName, getCurrent, getLocale, initialize, read, reportError, setErrorHandler, setLocale, skipCommaSpaces, skipSpaces |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
angleHandler
protected AngleHandler angleHandler
- The angle handler used to report parse events.
ConcreteAngleParser
public ConcreteAngleParser()
setAngleHandler
public void setAngleHandler(AngleHandler handler)
- 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.
- Specified by:
setAngleHandler
in interface AngleParser
- Parameters:
handler
- The transform list handler.
getAngleHandler
public AngleHandler getAngleHandler()
- Returns the angle handler in use.
- Specified by:
getAngleHandler
in interface AngleParser
parse
public void parse(java.io.Reader r)
throws ParseException
- Parses the given reader representing an angle.
- Specified by:
parse
in interface Parser
readNumber
protected void readNumber()
throws ParseException
- Implements
NumberParser.readNumber()
.
- Overrides:
readNumber
in class NumberParser
Copyright © 2000 Apache Software Foundation. All Rights Reserved.