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, weakCompareAndSet
byteValue, shortValue
@NonNull public byte[] read(long maxBytesToRead) throws LiteCoreException
maxBytesToRead
- The maximum number of bytes to read to the bufferLiteCoreException
public int read(byte[] b, int offset, long maxBytesToRead) throws LiteCoreException
LiteCoreException
public long getLength() throws LiteCoreException
LiteCoreException
public void seek(long position) throws LiteCoreException
LiteCoreException
public void close()