public class DirectByteArrayOutputStream extends OutputStream
| Constructor and Description | 
|---|
| DirectByteArrayOutputStream(int size) | 
| Modifier and Type | Method and Description | 
|---|---|
| byte[] | getArray() | 
| byte[] | getArrayDirect() | 
| int | size() | 
| void | write(int b)Writes the specified byte to this output stream. | 
close, flush, write, writepublic void write(int b)
           throws IOException
write in class OutputStreamb - the byte.IOException - if an I/O error occurs. In particular, an
   IOException may be thrown if the output stream has
   been closed.
 TODO Implement this java.io.OutputStream methodpublic int size()
public byte[] getArrayDirect()
public byte[] getArray()
Copyright © 2000-2020 Apache Software Foundation. All Rights Reserved.