org.apache.batik.refimpl.parser
Class ConcreteLengthListParser

java.lang.Object
  |
  +--org.apache.batik.refimpl.parser.AbstractParser
        |
        +--org.apache.batik.refimpl.parser.NumberParser
              |
              +--org.apache.batik.refimpl.parser.ConcreteLengthParser
                    |
                    +--org.apache.batik.refimpl.parser.ConcreteLengthListParser
All Implemented Interfaces:
LengthListParser, LengthParser, Localizable, Parser

public class ConcreteLengthListParser
extends ConcreteLengthParser
implements LengthListParser

This class implements an event-based parser for the SVG length list values.


Fields inherited from class org.apache.batik.refimpl.parser.ConcreteLengthParser
eRead, lengthHandler
 
Fields inherited from class org.apache.batik.refimpl.parser.NumberParser
buffer, bufferSize
 
Fields inherited from class org.apache.batik.refimpl.parser.AbstractParser
BUNDLE_CLASSNAME, column, current, errorHandler, line, localizableSupport, newlineRead, reader
 
Constructor Summary
ConcreteLengthListParser()
          Creates a new LengthListParser.
 
Method Summary
 LengthListHandler getLengthListHandler()
          Returns the length list handler in use.
 void parse(java.io.Reader r)
          Parses the given reader.
 void setLengthListHandler(LengthListHandler handler)
          Allows an application to register a length list handler.
 
Methods inherited from class org.apache.batik.refimpl.parser.ConcreteLengthParser
getLengthHandler, parseLength, readNumber, setLengthHandler
 
Methods inherited from class org.apache.batik.refimpl.parser.NumberParser
bufferize, getBufferContent, parseFloat
 
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
 
Methods inherited from interface org.apache.batik.parser.Parser
setErrorHandler
 
Methods inherited from interface org.apache.batik.i18n.Localizable
formatMessage, getLocale, setLocale
 

Constructor Detail

ConcreteLengthListParser

public ConcreteLengthListParser()
Creates a new LengthListParser.
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.

Specified by:
setLengthListHandler in interface LengthListParser
Parameters:
handler - The transform list handler.

getLengthListHandler

public LengthListHandler getLengthListHandler()
Returns the length list handler in use.
Specified by:
getLengthListHandler in interface LengthListParser

parse

public void parse(java.io.Reader r)
           throws ParseException
Parses the given reader.
Specified by:
parse in interface Parser
Overrides:
parse in class ConcreteLengthParser


Copyright © 2000 Apache Software Foundation. All Rights Reserved.