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
Constructor Summary |
ParserHelper(java.lang.CharSequence s,
int pos)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pos
public int pos
ParserHelper
public ParserHelper(java.lang.CharSequence s,
int pos)
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()