|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.InputStream
info1.TextInputStream
Constructor Summary | |
TextInputStream(java.lang.String s)
Constructs a text input stream that reads its input from a file |
Method Summary | |
void |
close()
Closes the input stream |
boolean |
fail()
Tests if the output stream is no longer valid |
int |
read()
Reads one character from the input stream. |
java.lang.String |
readChar()
Reads the next character from the stream. |
double |
readDouble()
Reads a floating-point number from the stream. |
int |
readInt()
Reads an integer (in decimal) from the stream. |
java.lang.String |
readLine()
Reads a line from the stream |
java.lang.String |
readWord()
Reads a word from the stream. |
void |
unread(int x)
Returns one character to the input stream, to be read again |
Methods inherited from class java.io.InputStream |
available, mark, markSupported, read, read, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TextInputStream(java.lang.String s)
s
- the file nameMethod Detail |
public java.lang.String readLine()
public java.lang.String readWord()
public java.lang.String readChar()
public int readInt()
public double readDouble()
public boolean fail()
public int read()
public void unread(int x)
x
- the character to be pushed backpublic void close()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |