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, write
public void write(int b) throws IOException
write
in class OutputStream
b
- 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-2021 Apache Software Foundation. All Rights Reserved.