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.
|
toString
@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
@CallSuper public void close()