edu.toronto.cs.util.userprompt
Class NiceReader

java.lang.Object
  extended by edu.toronto.cs.util.userprompt.NiceReader

public class NiceReader
extends java.lang.Object

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

NiceReader

public NiceReader(java.io.Reader in)
Constructs a NiceReader.


NiceReader

public NiceReader(java.io.InputStream in)
Method Detail

readLine

public java.lang.String readLine()
Reads a line from the associated source.


readInteger

public java.lang.Integer readInteger()
Reads an Integer from the associated source.