public class TextScanner extends Object
| Constructor and Description |
|---|
TextScanner() |
TextScanner(String s) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept() |
void |
accept(int ct) |
void |
append(char c) |
void |
append(long i) |
void |
append(String s) |
void |
clear() |
void |
copy() |
void |
copy(int n) |
void |
copy(StringBuilder sb) |
char |
currentChar()
Deprecated.
|
boolean |
eof() |
StringBuilder |
getBuffer() |
String |
getCopied() |
long |
getInt() |
long |
getLastInt() |
void |
inc()
Deprecated.
|
int |
index() |
int |
LA() |
int |
LA(int x) |
int |
length() |
int |
nextChar()
Deprecated.
|
String |
peekWord()
Provides the same functionality as #scanWord() but, after finding
the word, resets the index to the original position.
|
StringBuilder |
sb() |
String |
scanDelimited(String delimiters,
int quote1,
int quote2) |
Double |
scanDouble() |
boolean |
scanInt()
Scans for an integer number at the current location.
|
String |
scanLetters()
Scans for a word consisting only of letters.
|
String |
scanWord()
Scans for a generic "word", which is defined as a sequence of
characters starting with a letter, followed by letters and/or
digits and the special characters '$' and '_'.
|
void |
setIndex(int ix) |
void |
setString(String s) |
boolean |
skip(char c)
Deprecated.
|
boolean |
skipWS()
Skips whitespace at the current position.
|
public TextScanner()
public TextScanner(String s)
public long getLastInt()
public void setString(String s)
public void clear()
public String getCopied()
public StringBuilder getBuffer()
public long getInt()
public boolean skipWS()
public boolean eof()
public boolean scanInt()
public Double scanDouble()
public String scanWord()
public String peekWord()
scanWord()public String scanLetters()
@Deprecated public int nextChar()
@Deprecated public boolean skip(char c)
@Deprecated public char currentChar()
@Deprecated public void inc()
public int LA()
public int LA(int x)
public void accept()
public StringBuilder sb()
public int length()
public int index()
public void setIndex(int ix)
public void accept(int ct)
public void copy()
public void copy(StringBuilder sb)
public void copy(int n)
public void append(String s)
public void append(long i)
public void append(char c)
Copyright © 2017 etc.to. All rights reserved.