Class FormatReaderParsed

java.lang.Object
us.irdev.bedrock.bag.formats.FormatReader
us.irdev.bedrock.bag.formats.FormatReaderParsed
Direct Known Subclasses:
FormatReaderDelimited, FormatReaderJson

public class FormatReaderParsed extends FormatReader
  • Field Details

    • index

      protected int index
    • inputLength

      protected int inputLength
    • lineNumber

      protected int lineNumber
    • lastLineIndex

      protected int lastLineIndex
    • error

      protected boolean error
    • WHITESPACE_CHARS

      protected static final String WHITESPACE_CHARS
      See Also:
    • NEW_LINE

      protected static final char NEW_LINE
      See Also:
    • whitespaceChars

      protected final char[] whitespaceChars
  • Constructor Details

    • FormatReaderParsed

      protected FormatReaderParsed()
    • FormatReaderParsed

      public FormatReaderParsed(String input, boolean newLineIsWhitespace)
    • FormatReaderParsed

      public FormatReaderParsed(String input)
  • Method Details

    • notIn

      protected boolean notIn(char[] inChars, char c)
    • in

      protected boolean in(char[] inChars, char c)
    • check

      protected boolean check()
      Returns:
    • inspectForNewLine

      protected boolean inspectForNewLine(char c)
    • consumeWhile

      protected int consumeWhile(char[] inChars, boolean allowEscape)
    • consumeWhitespace

      protected void consumeWhitespace()
    • consumeUntil

      protected int consumeUntil(char[] stopChars, boolean allowEscape)
    • expect

      protected boolean expect(char c)
      Parameters:
      c -
      Returns:
    • expect

      protected boolean expect(char[] chars)
    • expect

      protected boolean expect(String string)
    • require

      protected boolean require(char c)
      Parameters:
      c -
      Returns:
    • require

      protected boolean require(char[] chars)
    • require

      protected boolean require(String string)
    • require

      protected boolean require(boolean condition, String explanation)
      Parameters:
      condition -
      explanation -
      Returns:
    • onReadError

      protected void onReadError(String errorMessage)
      Parameters:
      errorMessage -
    • readString

      protected String readString(char[] stopChars)
    • readBareValueUntil

      protected String readBareValueUntil(char[] stopChars)
    • readBareValueWhile

      protected String readBareValueWhile(char[] inChars)