- java.lang.Object
-
- com.github.weisj.jsvg.util.ParserBase
-
- com.github.weisj.jsvg.geometry.path.PathParser
-
public final class PathParser extends ParserBase
A helper for parsingPathCommands.
-
-
Field Summary
Fields Modifier and Type Field Description private charcurrentCommandprivate static java.util.logging.LoggerLOGGER-
Fields inherited from class com.github.weisj.jsvg.util.ParserBase
input
-
-
Constructor Summary
Constructors Constructor Description PathParser(@NotNull java.lang.String input)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private booleanisCommandChar(char c)private booleannextFlag()floatnextFloat()@NotNull BezierPathCommandparseMeshCommand()PathCommand[]parsePathCommand()private voidparsePathCommandInto(java.util.List<PathCommand> commands)-
Methods inherited from class com.github.weisj.jsvg.util.ParserBase
consume, consumeWhiteSpaceOrSeparator, currentLocation, hasNext, nextDouble, nextFloatOrUnspecified, peek
-
-
-
-
Method Detail
-
isCommandChar
private boolean isCommandChar(char c)
-
nextFloat
public float nextFloat() throws java.lang.NumberFormatException- Overrides:
nextFloatin classParserBase- Throws:
java.lang.NumberFormatException
-
nextFlag
private boolean nextFlag()
-
parseMeshCommand
@NotNull public @NotNull BezierPathCommand parseMeshCommand()
-
parsePathCommand
public PathCommand[] parsePathCommand()
-
parsePathCommandInto
private void parsePathCommandInto(java.util.List<PathCommand> commands)
-
-