VASSAL.tools
Class SequenceEncoder.Decoder

java.lang.Object
  |
  +--VASSAL.tools.SequenceEncoder.Decoder
Enclosing class:
SequenceEncoder

public static class SequenceEncoder.Decoder
extends java.lang.Object


Constructor Summary
SequenceEncoder.Decoder(java.lang.String value, char delimiter)
           
 
Method Summary
 boolean hasMoreTokens()
           
 char nextChar(char defaultValue)
          Return the first character of the next token
 int nextInt(int defaultValue)
          Parse the next token into an integer
 java.lang.String nextToken()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SequenceEncoder.Decoder

public SequenceEncoder.Decoder(java.lang.String value,
                               char delimiter)
Method Detail

hasMoreTokens

public boolean hasMoreTokens()

nextToken

public java.lang.String nextToken()

nextInt

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:
 

nextChar

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: