|
qflib 0.99 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
java.io.PipedOutputStream
de.qfs.lib.util.StablePipedOutputStream
A StablePipedOutputStream extends PipedOutputStream to pass all data written to it through the same thread to avoid broken pipes when writing within a temporary thread.
Constructor Summary | |
StablePipedOutputStream()
Create a new StablePipedOutputStream. |
|
StablePipedOutputStream(java.io.PipedInputStream sink)
Create a new StablePipedOutputStream for a PipedInputStream. |
Method Summary | |
void |
close()
Close this output stream and release any system resources associated with this stream. |
void |
write(byte[] b,
int off,
int len)
Write len bytes from the specified byte array starting at offset off to this output stream. |
void |
write(int b)
Write the specified byte to this output stream. |
Methods inherited from class java.io.PipedOutputStream |
connect, flush |
Methods inherited from class java.io.OutputStream |
write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StablePipedOutputStream()
public StablePipedOutputStream(java.io.PipedInputStream sink) throws java.io.IOException
sink
- The target for the data.
java.io.IOException
- If an I/O error occurs.Method Detail |
public void write(byte[] b, int off, int len) throws java.io.IOException
b
- The array.off
- The offset.len
- The number of bytes.
java.io.IOException
- If an I/O error occurs.public void write(int b) throws java.io.IOException
b
- The byte to write.
java.io.IOException
- If an I/O error occurs.public void close() throws java.io.IOException
java.io.IOException
- If an I/O error occurs.
|
qflib 0.99 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |