SQLite
Class BlobW

java.lang.Object
  extended by java.io.OutputStream
      extended by SQLite.BlobW
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

 class BlobW
extends java.io.OutputStream

Internal class implementing java.io.OutputStream on SQLite 3.4.0 incremental blob I/O interface.


Field Summary
private  Blob blob
          Blob instance
private  int pos
          Read position, file pointer.
 
Constructor Summary
BlobW(Blob blob)
          Contruct OutputStream from blob instance.
 
Method Summary
 void close()
          Close this blob OutputStream.
 void flush()
          Flush blob; dummy to satisfy OutputStream class.
 void write(byte[] b)
          Write blob data.
 void write(byte[] b, int off, int len)
          Write blob data.
 void write(int v)
          Write blob data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

blob

private Blob blob
Blob instance


pos

private int pos
Read position, file pointer.

Constructor Detail

BlobW

BlobW(Blob blob)
Contruct OutputStream from blob instance.

Method Detail

close

public void close()
           throws java.io.IOException
Close this blob OutputStream.

Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.OutputStream
Throws:
java.io.IOException

flush

public void flush()
           throws java.io.IOException
Flush blob; dummy to satisfy OutputStream class.

Specified by:
flush in interface java.io.Flushable
Overrides:
flush in class java.io.OutputStream
Throws:
java.io.IOException

write

public void write(byte[] b)
           throws java.io.IOException
Write blob data.

Overrides:
write in class java.io.OutputStream
Parameters:
b - byte array to be written at current position.
Throws:
java.io.IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Write blob data.

Overrides:
write in class java.io.OutputStream
Parameters:
b - byte array to be written.
off - offset within byte array
len - length of data to be written
Throws:
java.io.IOException

write

public void write(int v)
           throws java.io.IOException
Write blob data.

Specified by:
write in class java.io.OutputStream
Parameters:
v - byte to be written at current position.
Throws:
java.io.IOException


Contact: Christian Werner