|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object SQLite.Blob
public class Blob
Class to represent SQLite3 3.4.0 incremental blob I/O interface. Note, that all native methods of this class are not synchronized, i.e. it is up to the caller to ensure that only one thread is in these methods at any one time.
Field Summary | |
---|---|
private long |
handle
Internal handle for the SQLite3 blob. |
protected int |
size
Cached size of blob, setup right after blob has been opened. |
Constructor Summary | |
---|---|
Blob()
|
Method Summary | |
---|---|
void |
close()
Close blob. |
protected void |
finalize()
Destructor for object. |
java.io.InputStream |
getInputStream()
Return InputStream for this blob |
java.io.OutputStream |
getOutputStream()
Return OutputStream for this blob |
private static void |
internal_init()
Internal native initializer. |
(package private) int |
read(byte[] b,
int off,
int pos,
int len)
Internal blob read method. |
(package private) int |
write(byte[] b,
int off,
int pos,
int len)
Internal blob write method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private long handle
protected int size
Constructor Detail |
---|
public Blob()
Method Detail |
---|
public void close()
protected void finalize()
finalize
in class java.lang.Object
public java.io.InputStream getInputStream()
public java.io.OutputStream getOutputStream()
private static void internal_init()
int read(byte[] b, int off, int pos, int len) throws java.io.IOException
b
- byte array to be writtenoff
- offset into byte arraypos
- offset into bloblen
- length to be written
java.io.IOException
int write(byte[] b, int off, int pos, int len) throws java.io.IOException
b
- byte array to be writtenoff
- offset into byte arraypos
- offset into bloblen
- length to be written
java.io.IOException
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |