- java.lang.Object
-
- com.github.weisj.jsvg.util.ParserBase
-
- Direct Known Subclasses:
PathParser
public class ParserBase extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classParserBase.NumberCharState
-
Field Summary
Fields Modifier and Type Field Description private intindexprotected @NotNull java.lang.Stringinputprivate intinputLength
-
Constructor Summary
Constructors Constructor Description ParserBase(@NotNull java.lang.String input, int startIndex)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconsume()voidconsumeWhiteSpaceOrSeparator()protected @NotNull java.lang.StringcurrentLocation()booleanhasNext()private booleanisValidNumberChar(char c, ParserBase.NumberCharState state)private booleanisWhiteSpaceOrSeparator(char c)doublenextDouble()floatnextFloat()protected floatnextFloatOrUnspecified()private java.lang.StringnextNumberString()protected charpeek()
-
-
-
Method Detail
-
peek
protected char peek()
-
consume
protected void consume()
-
hasNext
public boolean hasNext()
-
consumeWhiteSpaceOrSeparator
public void consumeWhiteSpaceOrSeparator()
-
isWhiteSpaceOrSeparator
private boolean isWhiteSpaceOrSeparator(char c)
-
nextNumberString
private java.lang.String nextNumberString()
-
nextFloatOrUnspecified
protected float nextFloatOrUnspecified()
-
nextFloat
public float nextFloat() throws java.lang.NumberFormatException- Throws:
java.lang.NumberFormatException
-
nextDouble
public double nextDouble() throws java.lang.NumberFormatException- Throws:
java.lang.NumberFormatException
-
currentLocation
@NotNull protected @NotNull java.lang.String currentLocation()
-
isValidNumberChar
private boolean isValidNumberChar(char c, ParserBase.NumberCharState state)
-
-