01: package uk.org.ponder.streamutil;
02:
03: import java.io.IOException;
04: import java.io.PipedInputStream;
05: import java.io.PipedOutputStream;
06:
07: /** This utility class slightly streamlines the process of creating a matched
08: * pair of PipedInputStream and PipedOutputStream. Little used after conversion
09: * to the BytePen model.
10: */
11:
12: public class StreamPair {
13: public PipedInputStream inputstream;
14: public PipedOutputStream outputstream;
15:
16: /** Creates a connected pair of PipedOutputStream and PipedInputStream.
17: * @exception IOException If an I/O error occurs.
18: */
19: public StreamPair() throws IOException {
20: outputstream = new PipedOutputStream();
21: inputstream = new PipedInputStream(outputstream);
22: // outputstream.connect(inputstream);
23: }
24: }
|