Class PathParser
- 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 parsingPathCommand
s.
-
-
Field Summary
Fields Modifier and Type Field Description private char
currentCommand
private static java.util.logging.Logger
LOGGER
-
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 boolean
isCommandChar(char c)
private boolean
nextFlag()
float
nextFloat()
@NotNull BezierPathCommand
parseMeshCommand()
PathCommand[]
parsePathCommand()
private void
parsePathCommandInto(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:
nextFloat
in 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)
-
-