|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.parser.AbstractParser | +--org.apache.batik.parser.NumberParser
This class represents a parser with support for numbers.
Field Summary | |
protected char[] |
buffer
The buffer used for numbers. |
protected int |
bufferSize
The buffer size. |
Fields inherited from class org.apache.batik.parser.AbstractParser |
BUNDLE_CLASSNAME, current, errorHandler, inputBuffer, localizableSupport |
Constructor Summary | |
NumberParser()
|
Method Summary | |
protected void |
bufferize()
Adds the current character to the buffer. |
protected java.lang.String |
getBufferContent()
Returns the content of the buffer. |
protected float |
parseFloat()
Parses the content of the buffer and converts it to a float. |
protected abstract void |
readNumber()
Reads a number from the current stream and put it in the buffer. |
Methods inherited from class org.apache.batik.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 |
parse |
Field Detail |
protected char[] buffer
protected int bufferSize
Constructor Detail |
public NumberParser()
Method Detail |
protected abstract void readNumber() throws ParseException
protected float parseFloat() throws java.lang.NumberFormatException, ParseException
protected java.lang.String getBufferContent()
protected void bufferize()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |