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
.Scanner
public Long nextLong()
Tokenizer
and return the next Long from the Scanner
.Scanner
public Boolean nextBoolean()
Tokenizer
and return the next Boolean from the Scanner
.Scanner
public Double nextDouble()
Tokenizer
and return the next Double from the Scanner
.Scanner
public Float nextFloat()
Tokenizer
and return the next Float from the Scanner
.Scanner
public Integer nextInt()
Tokenizer
and return the next Integer from the Scanner
.Scanner
Copyright © 2016 The Apache Software Foundation. All rights reserved.