Class SequenceEncoder.Decoder

java.lang.Object
VASSAL.tools.SequenceEncoder.Decoder
All Implemented Interfaces:
Iterator<String>
Enclosing class:
SequenceEncoder

public static class SequenceEncoder.Decoder extends Object implements Iterator<String>
  • Constructor Details Link icon

  • Method Details Link icon

    • hasMoreTokens Link icon

      public boolean hasMoreTokens()
    • getRemaining Link icon

      public String getRemaining()
    • nextToken Link icon

      public String nextToken()
    • hasNext Link icon

      public boolean hasNext()
      Specified by:
      hasNext in interface Iterator<String>
    • next Link icon

      public String next()
      Specified by:
      next in interface Iterator<String>
    • remove Link icon

      public void remove()
      Specified by:
      remove in interface Iterator<String>
    • copy Link icon

      public SequenceEncoder.Decoder copy()
    • nextInt Link icon

      public int nextInt(int defaultValue)
      Parse the next token into an integer
      Parameters:
      defaultValue - Return this value if no more tokens, or next token doesn't parse to an integer
      Returns:
      next token as an integer, or defaultValue if it didn't exist or didn't parse
    • nextLong Link icon

      public long nextLong(long defaultValue)
    • nextDouble Link icon

      public double nextDouble(double defaultValue)
    • nextBoolean Link icon

      public boolean nextBoolean(boolean defaultValue)
    • nextChar Link icon

      public char nextChar(char defaultValue)
      Return the first character of the next token
      Parameters:
      defaultValue - Return this value if no more tokens, or if next token has zero length
      Returns:
      next token if a character is available, or defaultValue if no more tokens or the token has zero length
    • nextKeyStroke Link icon

      public KeyStroke nextKeyStroke(char defaultValue)
    • nextColor Link icon

      public Color nextColor(Color defaultValue)
    • nextKeyStroke Link icon

      public KeyStroke nextKeyStroke(KeyStroke defaultValue)
    • nextNamedKeyStroke Link icon

      public NamedKeyStroke nextNamedKeyStroke(char defaultValue)
    • nextNamedKeyStroke Link icon

      public NamedKeyStroke nextNamedKeyStroke()
    • nextNamedKeyStroke Link icon

      public NamedKeyStroke nextNamedKeyStroke(NamedKeyStroke defaultValue)
    • nextToken Link icon

      public String nextToken(String defaultValue)
      Return the next token, or the default value if there are no more tokens
      Parameters:
      defaultValue - default value in case there are no more tokens
      Returns:
      next token, or the default value if no more tokens
    • nextStringArray Link icon

      public String[] nextStringArray(int minLength)