Class ParserBase

java.lang.Object
com.github.weisj.jsvg.util.ParserBase
Direct Known Subclasses:
PathParser

public class ParserBase extends Object
  • Field Details

    • input

      @NotNull protected final @NotNull String input
    • inputLength

      private final int inputLength
    • index

      private int index
  • Constructor Details

    • ParserBase

      public ParserBase(@NotNull @NotNull String input, int startIndex)
  • 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

      private String nextNumberString()
    • nextFloatOrUnspecified

      protected float nextFloatOrUnspecified()
    • nextFloat

      public float nextFloat() throws NumberFormatException
      Throws:
      NumberFormatException
    • nextDouble

      public double nextDouble() throws NumberFormatException
      Throws:
      NumberFormatException
    • currentLocation

      @NotNull protected @NotNull String currentLocation()
    • isValidNumberChar

      private boolean isValidNumberChar(char c, ParserBase.NumberCharState state)