Class StringReader

java.lang.Object
ca.spottedleaf.dataconverter.util.StringReader

public class StringReader extends Object
  • Constructor Details

    • StringReader

      public StringReader(StringReader other)
    • StringReader

      public StringReader(String string)
  • Method Details

    • getString

      public String getString()
    • setCursor

      public void setCursor(int cursor)
    • getRemainingLength

      public int getRemainingLength()
    • getTotalLength

      public int getTotalLength()
    • getCursor

      public int getCursor()
    • getRead

      public String getRead()
    • getRemaining

      public String getRemaining()
    • canRead

      public boolean canRead(int length)
    • canRead

      public boolean canRead()
    • peek

      public char peek()
    • peek

      public char peek(int offset)
    • read

      public char read()
    • skip

      public void skip()
    • isAllowedNumber

      public static boolean isAllowedNumber(char c)
    • isQuotedStringStart

      public static boolean isQuotedStringStart(char c)
    • skipWhitespace

      public void skipWhitespace()
    • readInt

      public int readInt()
    • readDouble

      public double readDouble()
    • readFloat

      public float readFloat()
    • isAllowedInUnquotedString

      public static boolean isAllowedInUnquotedString(char c)
    • readUnquotedString

      public String readUnquotedString()
    • readQuotedString

      public String readQuotedString()
    • readStringUntil

      public String readStringUntil(char terminator)
    • readString

      public String readString()
    • readBoolean

      public boolean readBoolean()
    • expect

      public void expect(char c)