Package com.github.weisj.jsvg.util
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 void
consume()
void
protected @NotNull String
boolean
hasNext()
private boolean
isValidNumberChar
(char c, ParserBase.NumberCharState state) private boolean
isWhiteSpaceOrSeparator
(char c) double
float
protected float
private String
protected char
peek()
-
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
-