Data.ByteData, Data.FileData, Data.StorageData, Data.StringData| Constructor and Description |
|---|
ByteData(byte[] bytes)
Creates a new Data object that wraps a byte array.
|
| Modifier and Type | Method and Description |
|---|---|
void |
appendTo(OutputStream output)
Appends the data's content to an output stream.
|
long |
getSize()
Gets the size of the data content.
|
public ByteData(byte[] bytes)
bytes - public void appendTo(OutputStream output) throws IOException
appendTo in interface Dataoutput - The output stream to append to.IOExceptionpublic long getSize()
throws IOException
getSize in interface DataIOException