|
Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.OutputStream
org.apache.catalina.tribes.io.DirectByteArrayOutputStream
public class DirectByteArrayOutputStream
Byte array output stream that exposes the byte array directly
| Constructor Summary | |
|---|---|
DirectByteArrayOutputStream(int size)
|
|
| Method Summary | |
|---|---|
byte[] |
getArray()
|
byte[] |
getArrayDirect()
|
int |
size()
|
void |
write(int b)
Writes the specified byte to this output stream. |
| Methods inherited from class java.io.OutputStream |
|---|
close, flush, write, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DirectByteArrayOutputStream(int size)
| Method Detail |
|---|
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamb - the byte.
java.io.IOException - if an I/O error occurs. In particular, an
IOException may be thrown if the output stream has
been closed.public int size()
public byte[] getArrayDirect()
public byte[] getArray()
|
Apache Tomcat 6.0.53 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||