VASSAL.tools
Class SequenceEncoder.Decoder
java.lang.Object
|
+--VASSAL.tools.SequenceEncoder.Decoder
- Enclosing class:
- SequenceEncoder
- public static class SequenceEncoder.Decoder
- extends java.lang.Object
|
Method Summary |
boolean |
hasMoreTokens()
|
boolean |
nextBoolean(boolean defaultValue)
|
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()
|
java.lang.String |
nextToken(java.lang.String defaultValue)
Return the next token, or the default value if there are no more tokens |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SequenceEncoder.Decoder
public SequenceEncoder.Decoder(java.lang.String value,
char delimiter)
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:
-
nextBoolean
public boolean nextBoolean(boolean defaultValue)
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:
-
nextToken
public java.lang.String nextToken(java.lang.String defaultValue)
- Return the next token, or the default value if there are no more tokens
- Parameters:
defaultValue - - Returns:
-