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.
|
accumulateAndGet, addAndGet, compareAndSet, decrementAndGet, doubleValue, floatValue, get, getAndAccumulate, getAndAdd, getAndDecrement, getAndIncrement, getAndSet, getAndUpdate, incrementAndGet, intValue, lazySet, longValue, set, toString, updateAndGet, weakCompareAndSet
byteValue, shortValue
public 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
LiteCoreException
public void install() throws LiteCoreException
LiteCoreException
public void close()