|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.Reader | +--java.io.BufferedReader | +--sheffield.EasyReader
Fields inherited from class java.io.Reader |
lock |
Constructor Summary | |
EasyReader()
Create a new EasyReader that reads from standard input |
|
EasyReader(java.lang.String s)
Create a new EasyReader that reads from a text file |
Method Summary | |
boolean |
eof()
Check whether the end of the input stream has been reached |
boolean |
readBoolean()
Read a boolean from the input stream |
boolean |
readBoolean(java.lang.String s)
Read a boolean from the input stream, with a prompt |
char |
readChar()
Read a character from the input stream |
char |
readChar(java.lang.String s)
Read a character from the input stream, with a prompt |
double |
readDouble()
Read a double from the input stream |
double |
readDouble(java.lang.String s)
Read a double from the input stream, with a prompt |
float |
readFloat()
Read a float from the input stream |
float |
readFloat(java.lang.String s)
Read a float from the input stream, with a prompt |
int |
readInt()
Read an integer from the input stream |
int |
readInt(java.lang.String s)
Read an integer from the input stream, with a prompt |
java.lang.String |
readString()
Read a string from the input stream |
java.lang.String |
readString(java.lang.String s)
Read a string from the input stream, with a prompt |
Methods inherited from class java.io.BufferedReader |
close, mark, markSupported, read, read, readLine, ready, reset, skip |
Methods inherited from class java.io.Reader |
read |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public EasyReader()
public EasyReader(java.lang.String s)
s
- the name of the text fileMethod Detail |
public boolean eof()
public char readChar()
public char readChar(java.lang.String s)
s
- the promptpublic java.lang.String readString()
public java.lang.String readString(java.lang.String s)
public double readDouble()
public double readDouble(java.lang.String s)
public float readFloat()
public float readFloat(java.lang.String s)
public int readInt()
public int readInt(java.lang.String s)
public boolean readBoolean()
public boolean readBoolean(java.lang.String s)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |