|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.toronto.cs.util.userprompt.NiceReader
public class NiceReader
This class is a wrapper for Readers with all kinds of useful methods. It also only throws RuntimeExceptions for convenience.
Constructor Summary | |
---|---|
NiceReader(java.io.InputStream in)
|
|
NiceReader(java.io.Reader in)
Constructs a NiceReader. |
Method Summary | |
---|---|
java.lang.Integer |
readInteger()
Reads an Integer from the associated source. |
java.lang.String |
readLine()
Reads a line from the associated source. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NiceReader(java.io.Reader in)
public NiceReader(java.io.InputStream in)
Method Detail |
---|
public java.lang.String readLine()
public java.lang.Integer readInteger()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |