public class BlobStoreWriter
extends java.lang.Object
| Constructor and Description |
|---|
BlobStoreWriter(BlobStore store) |
| Modifier and Type | Method and Description |
|---|---|
void |
appendData(byte[] data)
Appends data to the blob.
|
void |
appendData(byte[] data,
int off,
int len) |
void |
cancel()
Call this to cancel before finishing the data.
|
void |
finish()
Call this after all the data has been added.
|
BlobKey |
getBlobKey() |
java.lang.String |
getFilePath() |
int |
getLength() |
boolean |
install()
Installs a finished blob into the store.
|
java.lang.String |
mD5DigestString() |
java.lang.String |
sHA1DigestString() |
public BlobStoreWriter(BlobStore store)
public void appendData(byte[] data)
throws java.io.IOException,
SymmetricKeyException
java.io.IOExceptionSymmetricKeyExceptionpublic void appendData(byte[] data,
int off,
int len)
throws java.io.IOException,
SymmetricKeyException
java.io.IOExceptionSymmetricKeyExceptionpublic void finish()
throws java.io.IOException,
SymmetricKeyException
java.io.IOExceptionSymmetricKeyExceptionpublic void cancel()
public boolean install()
public java.lang.String mD5DigestString()
public java.lang.String sHA1DigestString()
public int getLength()
public BlobKey getBlobKey()
public java.lang.String getFilePath()