Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## com.larvalabs.svgandroid
Class ParserHelper

    java.lang.Object
      com.larvalabs.svgandroid.ParserHelper

    public class ParserHelper

extends java.lang.Object

Parses numbers from SVG text. Based on the Batik Number Parser (Apache 2 License).

Author:
  Apache Software Foundation, Larva Labs LLC

Field Summary
`int` | `pos`

Constructor Summary
`ParserHelper(java.lang.CharSequence s, int pos)`

Method Summary
`void` | `advance()`
`static float` | `buildFloat(int mant, int exp)` Computes a float from mantissa and exponent.
`float` | `nextFloat()`
`float` | `parseFloat()` Parses the content of the buffer and converts it to a float.
`void` | `skipNumberSeparator()`
`void` | `skipWhitespace()`

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

Field Detail

### pos

    public int pos

Constructor Detail

### ParserHelper

    public ParserHelper(java.lang.CharSequence s,
                        int pos)

Method Detail

### skipWhitespace

    public void skipWhitespace()

### skipNumberSeparator

    public void skipNumberSeparator()

### advance

    public void advance()

### parseFloat

    public float parseFloat()

  Parses the content of the buffer and converts it to a float.

### buildFloat

    public static float buildFloat(int mant,
                                   int exp)

  Computes a float from mantissa and exponent.

### nextFloat

    public float nextFloat()

Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD