Package net.didion.jwnl.util
Class TokenizerParser
java.lang.Object
java.util.StringTokenizer
net.didion.jwnl.util.TokenizerParser
- All Implemented Interfaces:
Enumeration<Object>
A
StringTokenizer
with extensions to retrieve the values of numeric tokens, as well as strings.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
nextByte()
Convert the next token into a byteint
Convert the next token into a base 16 intint
nextInt()
Convert the next token into an intint
nextInt
(int radix) Convert the next token into an int with baseradix
long
nextLong()
Convert the next token into a longint
Convert the next token into a shortMethods inherited from class java.util.StringTokenizer
countTokens, hasMoreElements, hasMoreTokens, nextElement, nextToken, nextToken
-
Constructor Details
-
TokenizerParser
-
-
Method Details
-
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
-