SQLite

Class BlobR

class BlobR extends InputStream

Internal class implementing java.io.InputStream on SQLite 3.4.0 incremental blob I/O interface.
Field Summary
Blobblob
Blob instance
intpos
Read position, file pointer.
Constructor Summary
BlobR(Blob blob)
Contruct InputStream from blob instance.
Method Summary
intavailable()
Return number of available bytes for reading.
voidclose()
Close this blob InputStream.
voidmark(int limit)
Mark method; dummy to satisfy InputStream class.
booleanmarkSupported()
Mark support; not for this class.
intread()
Read single byte from blob.
intread(byte[] b)
Read byte array from blob.
intread(byte[] b, int off, int len)
Read slice of byte array from blob.
voidreset()
Reset method; dummy to satisfy InputStream class.
longskip(long n)
Skip over blob data.

Field Detail

blob

private Blob blob
Blob instance

pos

private int pos
Read position, file pointer.

Constructor Detail

BlobR

BlobR(Blob blob)
Contruct InputStream from blob instance.

Method Detail

available

public int available()
Return number of available bytes for reading.

Returns: available input bytes

close

public void close()
Close this blob InputStream.

mark

public void mark(int limit)
Mark method; dummy to satisfy InputStream class.

markSupported

public boolean markSupported()
Mark support; not for this class.

Returns: always false

read

public int read()
Read single byte from blob.

Returns: byte read

read

public int read(byte[] b)
Read byte array from blob.

Parameters: b byte array to be filled

Returns: number of bytes read

read

public int read(byte[] b, int off, int len)
Read slice of byte array from blob.

Parameters: b byte array to be filled off offset into byte array len length to be read

Returns: number of bytes read

reset

public void reset()
Reset method; dummy to satisfy InputStream class.

skip

public long skip(long n)
Skip over blob data.
Contact: Christian Werner