|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
hudson.remoting.FastPipedOutputStream
public class FastPipedOutputStream
This class is equivalent to java.io.PipedOutputStream. In the
interface it only adds a constructor which allows for specifying the buffer
size. Its implementation, however, is much simpler and a lot more efficient
than its equivalent. It doesn't rely on polling. Instead it uses proper
synchronization with its counterpart FastPipedInputStream.
FastPipedOutputStream| Constructor Summary | |
|---|---|
FastPipedOutputStream()
Creates an unconnected PipedOutputStream. |
|
FastPipedOutputStream(FastPipedInputStream sink)
Creates a PipedOutputStream with a default buffer size and connects it to sink. |
|
FastPipedOutputStream(FastPipedInputStream sink,
int bufferSize)
Deprecated. as of 1.350 bufferSize parameter is ignored. |
|
| Method Summary | |
|---|---|
void |
close()
|
void |
connect(FastPipedInputStream sink)
|
protected void |
finalize()
|
void |
flush()
|
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FastPipedOutputStream()
public FastPipedOutputStream(FastPipedInputStream sink)
throws IOException
sink.
IOException - It was already connected.
public FastPipedOutputStream(FastPipedInputStream sink,
int bufferSize)
throws IOException
bufferSize and
connects it to sink.
IOException - It was already connected.| Method Detail |
|---|
public void close()
throws IOException
close in interface Closeableclose in class OutputStreamIOException - The pipe is not connected.
public void connect(FastPipedInputStream sink)
throws IOException
IOException - The pipe is already connected.
protected void finalize()
throws Throwable
finalize in class ObjectThrowable
public void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOException
public void write(int b)
throws IOException
write in class OutputStreamIOException
public void write(byte[] b)
throws IOException
write in class OutputStreamIOException
public void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOException - The pipe is not connected or a reader has closed it.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||