public class DirectByteArrayOutputStream
extends java.io.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.
|
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
b
- 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.
TODO Implement this java.io.OutputStream methodpublic int size()
public byte[] getArrayDirect()
public byte[] getArray()
Copyright © 2000-2015 Apache Software Foundation. All Rights Reserved.