public class C4BlobWriteStream extends C4NativePeer
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes a blob write-stream.
|
C4BlobKey |
computeBlobKey()
Computes the blob-key (digest) of the data written to the stream.
|
void |
install()
Adds the data written to the stream as a finished blob to the store.
|
void |
write(byte[] bytes)
Writes an entire byte array to the stream.
|
void |
write(byte[] bytes,
int len)
Writes the len bytes from the passed array, to the stream.
|
toStringpublic void write(@NonNull
byte[] bytes)
throws LiteCoreException
bytes - array of bytes to be written in its entiretyLiteCoreException - on write failurepublic void write(@NonNull
byte[] bytes,
int len)
throws LiteCoreException
bytes - array of bytes to be written in its entirety.len - the number of bytes to writeLiteCoreException - on write failure@NonNull public C4BlobKey computeBlobKey() throws LiteCoreException
LiteCoreExceptionpublic void install()
throws LiteCoreException
LiteCoreException@CallSuper public void close()