Class NumberParser
java.lang.Object
org.apache.batik.parser.AbstractParser
org.apache.batik.parser.NumberParser
- All Implemented Interfaces:
Localizable, Parser
- Direct Known Subclasses:
AngleParser, FragmentIdentifierParser, NumberListParser, PathParser, PointsParser, TransformListParser
This class represents a parser with support for numbers.
-
Field Summary
Fields inherited from class AbstractParser
BUNDLE_CLASSNAME, current, errorHandler, localizableSupport, reader -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic floatbuildFloat(int mant, int exp) Computes a float from mantissa and exponent.protected floatParses the content of the buffer and converts it to a float.Methods inherited from class AbstractParser
createErrorMessage, doParse, formatMessage, getBundleClassName, getCurrent, getLocale, parse, parse, parse, reportCharacterExpectedError, reportError, reportUnexpectedCharacterError, setErrorHandler, setLocale, skipCommaSpaces, skipSpaces
-
Constructor Details
-
NumberParser
public NumberParser()
-
-
Method Details
-
parseFloat
Parses the content of the buffer and converts it to a float.- Throws:
ParseExceptionIOException
-
buildFloat
public static float buildFloat(int mant, int exp) Computes a float from mantissa and exponent.
-