static final class MemoryStorageProvider.MemoryStorage extends java.lang.Object implements Storage
| Constructor and Description |
|---|
MemoryStorage(byte[] data,
int count) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Deletes the data held by this
Storage as soon as possible. |
java.io.InputStream |
getInputStream()
Returns an
InputStream that can be used to read the stored
data. |
public java.io.InputStream getInputStream()
throws java.io.IOException
StorageInputStream that can be used to read the stored
data. The input stream should be closed by the caller when it is no
longer needed.
Note: The stream should NOT be wrapped in a
BufferedInputStream by the caller. If the implementing
Storage creates a stream which would benefit from being
buffered it is the Storage's responsibility to wrap it.
getInputStream in interface StorageInputStream for reading the stored data.java.io.IOException - if an I/O error occurs.