Package org.apache.batik.parser
Class LengthListParser
- java.lang.Object
-
- org.apache.batik.parser.AbstractParser
-
- org.apache.batik.parser.LengthParser
-
- org.apache.batik.parser.LengthListParser
-
- All Implemented Interfaces:
Localizable,Parser
- Direct Known Subclasses:
LengthPairListParser
public class LengthListParser extends LengthParser
This class implements an event-based parser for the SVG length list values.- Version:
- $Id: LengthListParser.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Field Summary
-
Fields inherited from class org.apache.batik.parser.LengthParser
lengthHandler
-
Fields inherited from class org.apache.batik.parser.AbstractParser
BUNDLE_CLASSNAME, current, errorHandler, localizableSupport, reader
-
-
Constructor Summary
Constructors Constructor Description LengthListParser()Creates a new LengthListParser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoParse()Parses the given reader.LengthListHandlergetLengthListHandler()Returns the length list handler in use.voidsetLengthListHandler(LengthListHandler handler)Allows an application to register a length list handler.-
Methods inherited from class org.apache.batik.parser.LengthParser
getLengthHandler, parseLength, setLengthHandler
-
Methods inherited from class org.apache.batik.parser.AbstractParser
createErrorMessage, formatMessage, getBundleClassName, getCurrent, getLocale, parse, parse, parse, reportCharacterExpectedError, reportError, reportUnexpectedCharacterError, setErrorHandler, setLocale, skipCommaSpaces, skipSpaces
-
-
-
-
Method Detail
-
setLengthListHandler
public void setLengthListHandler(LengthListHandler handler)
Allows an application to register a length 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 transform list handler.
-
getLengthListHandler
public LengthListHandler getLengthListHandler()
Returns the length list handler in use.
-
doParse
protected void doParse() throws ParseException, java.io.IOExceptionParses the given reader.- Overrides:
doParsein classLengthParser- Throws:
ParseExceptionjava.io.IOException
-
-