org.hsqldb.jdbc
Class BlobInputStream
java.lang.Object
java.io.InputStream
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)
BlobInputStream
public BlobInputStream(JDBCBlobClient blob,
long offset,
long length,
int blockSize)
throws SQLException
- Throws:
SQLException
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.