PipedOutputStream


PipedOutputStream java.io

Java 1.0 closeable flushable

This class is an OutputStream that implements one half a pipe and is useful for communication between threads. A PipedOutputStream must be connected to a PipedInputStream , which may be specified when the PipedOutputStream is created or with the connect( ) method. Data written to the PipedOutputStream is available for reading on the PipedInputStream . See OutputStream for information on the low-level methods for writing data to a PipedOutputStream . A FilterOutputStream can provide a higher-level interface for writing data to a PipedOutputStream .

Figure 9-46. java.io.PipedOutputStream

 public class  PipedOutputStream  extends OutputStream {  // Public Constructors  public  PipedOutputStream  ( );        public  PipedOutputStream  (PipedInputStream  snk  ) throws IOException;  // Public Instance Methods  public void  connect  (PipedInputStream  snk  ) throws IOException;  synchronized   // Public Methods Overriding OutputStream  public void  close  ( ) throws IOException;        public void  flush  ( ) throws IOException;  synchronized  public void  write  (int  b  ) throws IOException;        public void  write  (byte[ ]  b  , int  off  , int  len  ) throws IOException;   } 

Passed To

PipedInputStream.{connect( ) , PipedInputStream( )}



Java In A Nutshell
Java In A Nutshell, 5th Edition
ISBN: 0596007736
EAN: 2147483647
Year: 2004
Pages: 1220

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net