Class PathParser
java.lang.Object
com.github.weisj.jsvg.util.ParserBase
com.github.weisj.jsvg.geometry.path.PathParser
A helper for parsing
PathCommands.-
Field Summary
FieldsFields inherited from class ParserBase
input -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanisCommandChar(char c) private booleannextFlag()float@NotNull BezierPathCommandprivate voidparsePathCommandInto(List<PathCommand> commands) Methods inherited from class ParserBase
consume, consumeWhiteSpaceOrSeparator, currentLocation, hasNext, nextDouble, nextFloatOrUnspecified, peek
-
Field Details
-
LOGGER
-
currentCommand
private char currentCommand
-
-
Constructor Details
-
PathParser
-
-
Method Details
-
isCommandChar
private boolean isCommandChar(char c) -
nextFloat
- Overrides:
nextFloatin classParserBase- Throws:
NumberFormatException
-
nextFlag
private boolean nextFlag() -
parseMeshCommand
-
parsePathCommand
-
parsePathCommandInto
-