2
package org.crosswire.io;
7
* ConnectedReader is for use in command line processing type applications
8
* where it is important to flush and output to the user beofre we ask for
9
* some input. This is a simplar concept to the C++ tie() method in the
13
public class ConnectedReader extends Reader
18
public ConnectedReader(Reader in)
26
public void tie(Writer out)
32
* Override to pass out to the current Stream.
33
* @return The byte read, as normal.
35
public int read() throws IOException
44
* Override to pass out to the current Stream.
45
* @return The byte read, as normal.
47
public int read(char[] cbuf, int off, int len) throws IOException
52
return in.read(cbuf, off, len);
58
public void close() throws IOException
63
private Writer out = null;
64
private Reader in = null;