Package net.didion.jwnl.util
Class TokenizerParser
- java.lang.Object
-
- java.util.StringTokenizer
-
- net.didion.jwnl.util.TokenizerParser
-
- All Implemented Interfaces:
java.util.Enumeration<java.lang.Object>
public class TokenizerParser extends java.util.StringTokenizerAStringTokenizerwith extensions to retrieve the values of numeric tokens, as well as strings.
-
-
Constructor Summary
Constructors Constructor Description TokenizerParser(java.lang.String string, java.lang.String delimiters)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intnextByte()Convert the next token into a byteintnextHexInt()Convert the next token into a base 16 intintnextInt()Convert the next token into an intintnextInt(int radix)Convert the next token into an int with baseradixlongnextLong()Convert the next token into a longintnextShort()Convert the next token into a short
-
-
-
Method Detail
-
nextByte
public int nextByte()
Convert the next token into a byte
-
nextShort
public int nextShort()
Convert the next token into a short
-
nextInt
public int nextInt()
Convert the next token into an int
-
nextInt
public int nextInt(int radix)
Convert the next token into an int with baseradix- Parameters:
radix- the base into which to convert the next token
-
nextHexInt
public int nextHexInt()
Convert the next token into a base 16 int
-
nextLong
public long nextLong()
Convert the next token into a long
-
-