Package com.mxgraph.util.svg
Class NumberParser
- java.lang.Object
-
- com.mxgraph.util.svg.AbstractParser
-
- com.mxgraph.util.svg.NumberParser
-
- All Implemented Interfaces:
Parser
- Direct Known Subclasses:
PathParser
,PointsParser
public abstract class NumberParser extends AbstractParser
This class represents a parser with support for numbers.
-
-
Field Summary
-
Fields inherited from class com.mxgraph.util.svg.AbstractParser
BUNDLE_CLASSNAME, current, errorHandler, reader
-
-
Constructor Summary
Constructors Constructor Description NumberParser()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static float
buildFloat(int mant, int exp)
Computes a float from mantissa and exponent.protected float
parseFloat()
Parses the content of the buffer and converts it to a float.-
Methods inherited from class com.mxgraph.util.svg.AbstractParser
createErrorMessage, doParse, getBundleClassName, getCurrent, parse, reportCharacterExpectedError, reportError, reportUnexpectedCharacterError, setErrorHandler, skipCommaSpaces, skipSpaces
-
-
-
-
Method Detail
-
parseFloat
protected float parseFloat() throws ParseException, java.io.IOException
Parses the content of the buffer and converts it to a float.- Throws:
ParseException
java.io.IOException
-
buildFloat
public static float buildFloat(int mant, int exp)
Computes a float from mantissa and exponent.
-
-