|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
org.jboss.remoting.transport.multiplex.utility.GrowablePipedOutputStream
public class GrowablePipedOutputStream
GrowablePipedOutputStream
works together with
GrowablePipedInputStream
like java.io.PipedInputStream
and java.io.PipedOutputStream
work together, so that
calling GrowablePipedOutputStream.write()
causes bytes to be deposited with the
matching GrowablePipedInputStream
. However, unlike
PipedInputStream
, GrowablePipedInputStream
stores
bytes in a ShrinkableByteArrayOutputStream
, which
can grow and contract dynamically in response to the number of bytes it contains.
For more information about method behavior, see the java.io.OutputStream
javadoc.
Copyright (c) 2005
Constructor Summary | |
---|---|
GrowablePipedOutputStream()
Deprecated. Create a new GrowablePipedOutputStream . |
|
GrowablePipedOutputStream(GrowablePipedInputStream sink)
Deprecated. Create a new GrowablePipedOutputStream . |
Method Summary | |
---|---|
protected void |
connect(GrowablePipedInputStream sink)
Deprecated. |
protected boolean |
isConnected()
Deprecated. |
void |
write(byte[] bytes)
Deprecated. |
void |
write(byte[] bytes,
int offset,
int length)
Deprecated. |
void |
write(int b)
Deprecated. |
Methods inherited from class java.io.OutputStream |
---|
close, flush |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GrowablePipedOutputStream()
GrowablePipedOutputStream
.
public GrowablePipedOutputStream(GrowablePipedInputStream sink) throws java.io.IOException
GrowablePipedOutputStream
.
snk
-
java.io.IOException
Method Detail |
---|
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] bytes) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] bytes, int offset, int length) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
protected void connect(GrowablePipedInputStream sink) throws java.io.IOException
java.io.IOException
protected boolean isConnected()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |