|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.batik.parser.AbstractParser
org.apache.batik.parser.LengthParser
public class LengthParser
This class implements an event-based parser for the SVG length values.
Field Summary | |
---|---|
protected LengthHandler |
lengthHandler
The length handler used to report parse events. |
Fields inherited from class org.apache.batik.parser.AbstractParser |
---|
BUNDLE_CLASSNAME, current, errorHandler, localizableSupport, reader |
Constructor Summary | |
---|---|
LengthParser()
Creates a new LengthParser. |
Method Summary | |
---|---|
protected void |
doParse()
Method responsible for actually parsing data after AbstractParser has initialized itself. |
LengthHandler |
getLengthHandler()
Returns the length handler in use. |
protected void |
parseLength()
Parses a length value. |
void |
setLengthHandler(LengthHandler handler)
Allows an application to register a length handler. |
Methods inherited from class org.apache.batik.parser.AbstractParser |
---|
createErrorMessage, formatMessage, getBundleClassName, getCurrent, getLocale, parse, parse, parse, reportCharacterExpectedError, reportError, reportUnexpectedCharacterError, setErrorHandler, setLocale, skipCommaSpaces, skipSpaces |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected LengthHandler lengthHandler
Constructor Detail |
---|
public LengthParser()
Method Detail |
---|
public void setLengthHandler(LengthHandler 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 LengthHandler getLengthHandler()
protected void doParse() throws ParseException, java.io.IOException
AbstractParser
doParse
in class AbstractParser
ParseException
java.io.IOException
protected void parseLength() throws ParseException, java.io.IOException
ParseException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |