Class LeadPipeOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.PipedOutputStream
-
- com.dtolabs.rundeck.core.execution.utils.LeadPipeOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class LeadPipeOutputStream extends java.io.PipedOutputStreamLeadPipeOutputStream 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.
-
-
Constructor Summary
Constructors Constructor Description LeadPipeOutputStream()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidwrite(byte[] bytes)voidwrite(byte[] bytes, int i, int i1)voidwrite(int i)
-
-
-
Method Detail
-
write
public void write(int i) throws java.io.IOException- Overrides:
writein classjava.io.PipedOutputStream- Throws:
java.io.IOException
-
write
public void write(byte[] bytes, int i, int i1) throws java.io.IOException- Overrides:
writein classjava.io.PipedOutputStream- Throws:
java.io.IOException
-
write
public void write(byte[] bytes) throws java.io.IOException- Overrides:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
-