Data.ByteData, Data.FileData, Data.StorageData, Data.StringData
Constructor and Description |
---|
StorageData(String key)
Creates a new Data wrapper for a storage key.
|
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 StorageData(String key)
key
- The storage key.public void appendTo(OutputStream output) throws IOException
appendTo
in interface Data
output
- The output stream to append to.IOException
public long getSize() throws IOException
getSize
in interface Data
IOException