public static class Data.StorageData
- Object
- Data.StorageData
ImplementsData
Wraps a Storage object as a Data object.
Constructors
public StorageData(String key) | Creates a new Data wrapper for a storage key. |
Methods
public void appendTo(OutputStream output)
throws IOException | Appends the data’s content to an output stream. |
public long getSize()
throws IOException | Gets the size of the data content. |
Inherited nested types
Inherited methods
Constructor details
StorageData
public StorageData(String key)Creates a new Data wrapper for a storage key.
Parameters
keyString- The storage key.
Method details
appendTo
public void appendTo(OutputStream output)
throws IOExceptionAppends the data’s content to an output stream.
Parameters
outputOutputStream- The output stream to append to.
Throws
getSize
public long getSize()
throws IOExceptionGets the size of the data content.
Returns
Size of content in bytes.