Home | History | Annotate | Download | only in SQLite

Lines Matching refs:blob

7  * SQLite 3.4.0 incremental blob I/O interface.
13 * Blob instance
16 private Blob blob;
25 * Contruct InputStream from blob instance.
28 BlobR(Blob blob) {
29 this.blob = blob;
39 int ret = blob.size - pos;
67 * Close this blob InputStream.
71 blob.close();
72 blob = null;
77 * Skip over blob data.
85 } else if (ret > blob.size) {
86 ret = blob.size;
87 pos = blob.size;
95 * Read single byte from blob.
101 int n = blob.read(b, 0, pos, b.length);
110 * Read byte array from blob.
116 int n = blob.read(b, 0, pos, b.length);
125 * Read slice of byte array from blob.
142 int n = blob.read(b, off, pos, len);
153 * SQLite 3.4.0 incremental blob I/O interface.
159 * Blob instance
162 private Blob blob;
171 * Contruct OutputStream from blob instance.
174 BlobW(Blob blob) {
175 this.blob = blob;
180 * Flush blob; dummy to satisfy OutputStream class.
187 * Close this blob OutputStream.
191 blob.close();
192 blob = null;
197 * Write blob data.
204 pos += blob.write(b, 0, pos, 1);
208 * Write blob data.
214 pos += blob.write(b, 0, pos, b.length);
219 * Write blob data.
233 pos += blob.write(b, off, pos, len);
239 * Class to represent SQLite3 3.4.0 incremental blob I/O interface.
247 public class Blob {
250 * Internal handle for the SQLite3 blob.
256 * Cached size of blob, setup right after blob
263 * Return InputStream for this blob
272 * Return OutputStream for this blob
281 * Close blob.
287 * Internal blob write method.
290 * @param pos offset into blob
292 * @return number of bytes written to blob
298 * Internal blob read method.
301 * @param pos offset into blob
303 * @return number of bytes written to blob