Class C4BlobReadStream

  • All Implemented Interfaces:
    AutoCloseable

    public class C4BlobReadStream
    extends C4NativePeer
    An open stream for reading data from a blob.
    • Method Detail

      • read

        @NonNull
        public byte[] read​(long maxBytesToRead)
                    throws LiteCoreException
        Reads from an open stream.
        Parameters:
        maxBytesToRead - The maximum number of bytes to read to the buffer
        Throws:
        LiteCoreException
      • seek

        public void seek​(long position)
                  throws LiteCoreException
        Moves to a random location in the stream; the next c4stream_read call will read from that location.
        Throws:
        LiteCoreException
      • close

        @CallSuper
        public void close()
        Closes a read-stream.