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

public abstract class NumberParser extends AbstractParser
This class represents a parser with support for numbers.
  • Constructor Details

    • NumberParser

      public NumberParser()
  • Method Details

    • parseFloat

      protected float parseFloat() throws ParseException, IOException
      Parses the content of the buffer and converts it to a float.
      Throws:
      ParseException
      IOException
    • buildFloat

      public static float buildFloat(int mant, int exp)
      Computes a float from mantissa and exponent.