
Using Piped Streams in an Application
Java’s PipedInputStream and PipedOutputStream classes allow you to write data to an OutputStream object and to read this data from an InputStream object (see the tips “Pass Data Between Threads Using Piped Streams” and “Connecting the Piped Stream Classes“). You can use the two stream classes in an application. Typically,