[ Web Proxy ]
URL:
Viewing: https://docs.oracle.com/en/java/javase/24/docs/api/java.base/java/io/PipedOutputStream.html [Back]  [Original]

PipedOutputStream (Java SE 24 & JDK 24)
Contents 
Hide sidebar ❮❯ Show sidebar
  1. Description
  2. Constructor Summary
  3. Method Summary
  4. Constructor Details
    1. PipedOutputStream(PipedInputStream)
    2. PipedOutputStream()
  5. Method Details
    1. connect(PipedInputStream)
    2. write(int)
    3. write(byte[], int, int)
    4. flush()
    5. close()

Class PipedOutputStream

java.lang.Object
java.io.OutputStream
java.io.PipedOutputStream
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class PipedOutputStream extends OutputStream
A piped output stream can be connected to a piped input stream to create a communications pipe. The piped output stream is the sending end of the pipe. Typically, data is written to a PipedOutputStream object by one thread and data is read from the connected PipedInputStream by some other thread. Attempting to use both objects from a single thread is not recommended as it may deadlock the thread. The pipe is said to be broken if a thread that was reading data bytes from the connected piped input stream is no longer alive.
Since:
1.0
See Also:


Web Proxy Viewer  |  New URL  |  Original Page