public class TokenizerParser extends StringTokenizer
StringTokenizer with extensions to retrieve the values of numeric tokens, as well as strings.| Constructor and Description |
|---|
TokenizerParser(String string,
String delimiters) |
| Modifier and Type | Method and Description |
|---|---|
int |
nextByte()
Convert the next token into a byte
|
int |
nextHexInt()
Convert the next token into a base 16 int
|
int |
nextInt()
Convert the next token into an int
|
int |
nextInt(int radix)
Convert the next token into an int with base
radix |
long |
nextLong()
Convert the next token into a long
|
int |
nextShort()
Convert the next token into a short
|
countTokens, hasMoreElements, hasMoreTokens, nextElement, nextToken, nextTokenpublic int nextByte()
public int nextShort()
public int nextInt()
public int nextInt(int radix)
radixradix - the base into which to convert the next tokenpublic int nextHexInt()
public long nextLong()
Copyright © 2023. All rights reserved.