|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sqlite.Blob
public class Blob
sqlite3_blob wrapper class.
NOTE: SQLite 3.5.7 based.
Database.openBlob(java.lang.String, java.lang.String, java.lang.String, long, int)| Method Summary | |
|---|---|
void |
close()
invoke sqlite3_blob_close() function. |
boolean |
isClosed()
Retrieves whether this object has been closed. |
int |
length()
invoke sqlite3_blob_bytes() function. |
void |
read(byte[] b,
int len,
int offset)
invoke sqlite3_blob_read() function. |
void |
write(byte[] b,
int len,
int offset)
invoke sqlite3_blob_write() function. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean isClosed()
Closeable
isClosed in interface Closeable
public void close()
throws java.sql.SQLException
close in interface Closeablejava.sql.SQLException - When the return value of the sqlite3_blob_close() function is not SQLITE_OK.
public int length()
throws java.sql.SQLException
java.sql.SQLException - When this method is called on a closed blob.
public void read(byte[] b,
int len,
int offset)
throws java.sql.SQLException
b - the buffer into which the data is read.len - the maximum number of bytes to read.offset - the start offset in BLOB at which the data is read.
java.sql.SQLException - When this method is called on a closed blob. When the return value of the sqlite3_blob_read() function is not SQLITE_OK.
public void write(byte[] b,
int len,
int offset)
throws java.sql.SQLException
b - the data.len - the number of bytes to write.offset - the start offset in the BLOB.
java.sql.SQLException - When the return value of the sqlite3_blob_write() function is not SQLITE_OK.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||