org.sqlite.io
Class BlobInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.sqlite.io.InputStreamAdapter
          extended by org.sqlite.io.BlobInputStream
All Implemented Interfaces:
java.io.Closeable

public class BlobInputStream
extends InputStreamAdapter


Constructor Summary
BlobInputStream(Closeable owner, Blob blob)
          default constructor.
 
Method Summary
protected  void read(long pos, byte[] b, int off, int len)
           
 
Methods inherited from class org.sqlite.io.InputStreamAdapter
available, close, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlobInputStream

public BlobInputStream(Closeable owner,
                       Blob blob)
                throws java.sql.SQLException
default constructor.

Parameters:
owner - the owner Closeable object
blob - the sqlite3_blob object.
Throws:
java.sql.SQLException - When this method is called on a closed blob.
Method Detail

read

protected void read(long pos,
                    byte[] b,
                    int off,
                    int len)
             throws java.io.IOException
Specified by:
read in class InputStreamAdapter
Throws:
java.io.IOException