Class ParserBase
java.lang.Object
com.github.weisj.jsvg.util.ParserBase
- Direct Known Subclasses:
PathParser
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidconsume()voidprotected @NotNull StringbooleanhasNext()private booleanisValidNumberChar(char c, ParserBase.NumberCharState state) private booleanisWhiteSpaceOrSeparator(char c) doublefloatprotected floatprivate Stringprotected charpeek()
-
Field Details
-
input
-
inputLength
private final int inputLength -
index
private int index
-
-
Constructor Details
-
ParserBase
-
-
Method Details
-
peek
protected char peek() -
consume
protected void consume() -
hasNext
public boolean hasNext() -
consumeWhiteSpaceOrSeparator
public void consumeWhiteSpaceOrSeparator() -
isWhiteSpaceOrSeparator
private boolean isWhiteSpaceOrSeparator(char c) -
nextNumberString
-
nextFloatOrUnspecified
protected float nextFloatOrUnspecified() -
nextFloat
- Throws:
NumberFormatException
-
nextDouble
- Throws:
NumberFormatException
-
currentLocation
-
isValidNumberChar
-