NumberParser (JGraph X 2.1.0.7 API Specification)
Date: 2013-07-31

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JGraph X 2.1.0.7
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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
`NumberParser()`

Method Summary
`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`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### NumberParser

    public NumberParser()

Method Detail

### 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.

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| JGraph X 2.1.0.7
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright (c) 2010 Gaudenz Alder. All rights reserved.