|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--TextInput
A TextInput object encapsulates a stream of text connected
to an actual input stream (InputStream or Reader).
Constructor Summary | |
TextInput()
Creates a TextInput object connected to the keyboard. |
|
TextInput(java.io.InputStream is)
Creates a TextInput object encapsulating an InputStream. |
|
TextInput(java.io.Reader rd)
Creates a TextInput object encapsulating a Reader. |
Method Summary | |
double |
readDouble()
Reads one double from input stream. |
int |
readInt()
Reads one int from input stream. |
java.lang.String |
readLine()
Reads a line of text from input stream, consumming the end-of-line character(s). |
long |
readLong()
Reads one long from input stream. |
java.lang.String |
readToken()
Reads one token from input stream using whitespace as delimiter. |
java.lang.String |
readWord()
Reads one English word from input stream. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public TextInput()
public TextInput(java.io.InputStream is)
is
- InputStream from which bytes (ASCII characters) can be read.public TextInput(java.io.Reader rd)
rd
- Reader from which Unicode characters can be read.Method Detail |
public java.lang.String readLine()
public java.lang.String readToken()
public java.lang.String readWord()
public int readInt()
public double readDouble()
public long readLong()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |