java.io.Closeable
, java.io.Flushable
, java.lang.AutoCloseable
public class DirectByteArrayOutputStream
extends java.io.OutputStream
Constructor | Description |
---|---|
DirectByteArrayOutputStream(int size) |
Modifier and Type | Method | 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.public int size()
public byte[] getArrayDirect()
public byte[] getArray()
Copyright © 2000-2019 Apache Software Foundation. All Rights Reserved.