|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Stores arbitrairy blob ("binary large object") data.
The store is a write-once, read-many type of store. An existing blob cannot be updated, rather a new one needs to be written.
The user of the BlobStore is himself responsible not to retrieve or delete a blob before it is completely written.
Method Summary | |
void |
delete(java.lang.String name)
|
java.io.InputStream |
retrieve(java.lang.String name)
The caller is responsible himself that a file is not being read before it is completely written. |
java.lang.String |
store(byte[] data)
Returns an auto-generated key by which the blob can later be retrieved. |
java.lang.String |
store(java.io.InputStream is)
Returns an auto-generated key by which the blob can later be retrieved. |
Method Detail |
public java.lang.String store(byte[] data) throws BlobIOException
BlobIOException
public java.lang.String store(java.io.InputStream is) throws BlobIOException
BlobIOException
public java.io.InputStream retrieve(java.lang.String name) throws BlobIOException, NonExistingBlobException
BlobIOException
NonExistingBlobException
public void delete(java.lang.String name) throws NonExistingBlobException
NonExistingBlobException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |