org.hsqldb.jdbc
Class BlobInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by org.hsqldb.jdbc.BlobInputStream
All Implemented Interfaces:
Closeable

public class BlobInputStream
extends InputStream

This class is used as an InputStream to retrieve data from a Blob. mark() and reset() are not supported.

Since:
1.9.0
Author:
Fred Toussi (fredt@users dot sourceforge.net)

Constructor Summary
BlobInputStream(JDBCBlobClient blob, long offset, long length, int blockSize)
           
 
Method Summary
 int available()
           
 void close()
           
 int read()
           
 long skip(long n)
           
 
Methods inherited from class java.io.InputStream
mark, markSupported, read, read, reset
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BlobInputStream

public BlobInputStream(JDBCBlobClient blob,
                       long offset,
                       long length,
                       int blockSize)
                throws SQLException
Throws:
SQLException
Method Detail

read

public int read()
         throws IOException
Specified by:
read in class InputStream
Throws:
IOException

skip

public long skip(long n)
          throws IOException
Overrides:
skip in class InputStream
Throws:
IOException

available

public int available()
              throws IOException
Overrides:
available in class InputStream
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class InputStream
Throws:
IOException


Copyright © 2001 - 2009 HSQL Development Group.