| Constructor and Description |
|---|
Tokenizer(Scanner scanner,
Set<Integer> indices,
boolean keep)
Create a new
Tokenizer instance. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Returns true if the underlying
Scanner has any tokens remaining. |
String |
next()
Advance this
Tokenizer and return the next String from the Scanner. |
Boolean |
nextBoolean()
Advance this
Tokenizer and return the next Boolean from the Scanner. |
Double |
nextDouble()
Advance this
Tokenizer and return the next Double from the Scanner. |
Float |
nextFloat()
Advance this
Tokenizer and return the next Float from the Scanner. |
Integer |
nextInt()
Advance this
Tokenizer and return the next Integer from the Scanner. |
Long |
nextLong()
Advance this
Tokenizer and return the next Long from the Scanner. |
public boolean hasNext()
Scanner has any tokens remaining.public String next()
Tokenizer and return the next String from the Scanner.Scannerpublic Long nextLong()
Tokenizer and return the next Long from the Scanner.Scannerpublic Boolean nextBoolean()
Tokenizer and return the next Boolean from the Scanner.Scannerpublic Double nextDouble()
Tokenizer and return the next Double from the Scanner.Scannerpublic Float nextFloat()
Tokenizer and return the next Float from the Scanner.Scannerpublic Integer nextInt()
Tokenizer and return the next Integer from the Scanner.ScannerCopyright © 2015 The Apache Software Foundation. All Rights Reserved.