Modifier and Type | Field and Description |
---|---|
protected ByteArrayOutputStream |
bos |
Constructor and Description |
---|
ByteArrayDataSink() |
Modifier and Type | Method and Description |
---|---|
OutputStream |
createOutputStream()
Creates an output stream to receive the data
|
byte[] |
getData()
Returns the output data
|
protected ByteArrayOutputStream bos
public OutputStream createOutputStream()
DataSink
createOutputStream
in interface DataSink
public byte[] getData()