public class C4BlobReadStream extends C4NativePeer
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes a read-stream.
|
long |
getLength()
Returns the exact length in bytes of the stream.
|
int |
read(byte[] b,
int offset,
long maxBytesToRead) |
byte[] |
read(long maxBytesToRead)
Reads from an open stream.
|
void |
seek(long position)
Moves to a random location in the stream; the next c4stream_read call will read from that
location.
|
accumulateAndGet, addAndGet, compareAndSet, decrementAndGet, doubleValue, floatValue, get, getAndAccumulate, getAndAdd, getAndDecrement, getAndIncrement, getAndSet, getAndUpdate, incrementAndGet, intValue, lazySet, longValue, set, toString, updateAndGet, weakCompareAndSetbyteValue, shortValue@NonNull
public byte[] read(long maxBytesToRead)
throws LiteCoreException
maxBytesToRead - The maximum number of bytes to read to the bufferLiteCoreExceptionpublic int read(byte[] b,
int offset,
long maxBytesToRead)
throws LiteCoreException
LiteCoreExceptionpublic long getLength()
throws LiteCoreException
LiteCoreExceptionpublic void seek(long position)
throws LiteCoreException
LiteCoreExceptionpublic void close()