|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectjava.io.InputStream
SQLite.BlobR
Internal class implementing java.io.InputStream on SQLite 3.4.0 incremental blob I/O interface.
| Field Summary | |
private Blob |
blob
Blob instance |
private int |
pos
Read position, file pointer. |
| Fields inherited from class java.io.InputStream |
|
| Constructor Summary | |
(package private) |
BlobR(Blob blob)
Contruct InputStream from blob instance. |
| Method Summary | |
int |
available()
Return number of available bytes for reading. |
void |
close()
Close this blob InputStream. |
void |
mark(int limit)
Mark method; dummy to satisfy InputStream class. |
boolean |
markSupported()
Mark support; not for this class. |
int |
read()
Read single byte from blob. |
int |
read(byte[] b)
Read byte array from blob. |
int |
read(byte[] b,
int off,
int len)
Read slice of byte array from blob. |
void |
reset()
Reset method; dummy to satisfy InputStream class. |
long |
skip(long n)
Skip over blob data. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
private Blob blob
private int pos
| Constructor Detail |
BlobR(Blob blob)
blob - blob to make input stream from| Method Detail |
public int available()
throws IOException
IOException - on I/O error
public void close()
throws IOException
IOException - on I/O errorpublic void mark(int limit)
public boolean markSupported()
public int read()
throws IOException
IOException - on I/O error
public int read(byte[] b)
throws IOException
b - byte array to be filled
IOException - on I/O error
public int read(byte[] b,
int off,
int len)
throws IOException
b - byte array to be filledoff - offset into byte arraylen - length to be read
IOException - on I/O error
public void reset()
throws IOException
IOException - on I/O error
public long skip(long n)
throws IOException
n - number of bytes to skip
IOException - on I/O error
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||