|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface BlobStore
An interface to store and read large binary objects.
| Method Summary | |
|---|---|
long |
getBlobLength(String blobId)
Get the length of the blob. |
int |
readBlob(String blobId,
long pos,
byte[] buff,
int off,
int length)
Read a number of bytes from a blob. |
String |
writeBlob(InputStream in)
Write a blob from an input stream. |
| Method Detail |
|---|
String writeBlob(InputStream in)
throws Exception
in - the input stream
Exception
int readBlob(String blobId,
long pos,
byte[] buff,
int off,
int length)
throws Exception
blobId - the blob idpos - the position within the blobbuff - the target byte arrayoff - the offset within the target arraylength - the number of bytes to read
Exception
long getBlobLength(String blobId)
throws Exception
blobId - the blob id
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||