org.apache.pivot.io
Class EchoReader
java.lang.Object
java.io.Reader
org.apache.pivot.io.EchoReader
- All Implemented Interfaces:
- Closeable, Readable
public class EchoReader
- extends Reader
Reader that echoes characters to the console as they are read.
Method Summary |
void |
close()
|
int |
read(char[] cbuf,
int off,
int len)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EchoReader
public EchoReader(Reader in)
EchoReader
public EchoReader(Reader in,
Writer echo)
close
public void close()
throws IOException
- Specified by:
close
in interface Closeable
- Specified by:
close
in class Reader
- Throws:
IOException
read
public int read(char[] cbuf,
int off,
int len)
throws IOException
- Specified by:
read
in class Reader
- Throws:
IOException