- All Implemented Interfaces:
- java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable
public class LeadPipeOutputStream
extends java.io.PipedOutputStream
LeadPipeOutputStream is a PipedOutputStream that allows the thread reading from the PipedInputStream to die or finish
without completing, and does not throw any IOExceptions if this occurs. It can be used when the reader thread does
not need to read all of the data, which otherwise would cause an IOException if a writer attempts to write to the
PipedOutputStream and the reading thread is not alive. Once the reader thread finishes or dies, then further writes
to this LeadPipeOutputStream will return without doing anything.