org.hsqldb.jdbc
Class ClobInputStream

java.lang.Object
  extended by java.io.Reader
      extended by org.hsqldb.jdbc.ClobInputStream
All Implemented Interfaces:
Closeable, Readable

public final class ClobInputStream
extends Reader

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
ClobInputStream(JDBCClobClient clob, long offset, long length, int blockSize)
           
 
Method Summary
 int available()
           
 void close()
           
 int read()
           
 int read(char[] cbuf, int off, int len)
           
 long skip(long n)
           
 
Methods inherited from class java.io.Reader
mark, markSupported, read, read, ready, reset
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClobInputStream

public ClobInputStream(JDBCClobClient clob,
                       long offset,
                       long length,
                       int blockSize)
                throws SQLException
Throws:
SQLException
Method Detail

read

public int read()
         throws IOException
Overrides:
read in class Reader
Throws:
IOException

read

public int read(char[] cbuf,
                int off,
                int len)
         throws IOException
Specified by:
read in class Reader
Throws:
IOException

skip

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

available

public int available()
              throws IOException
Throws:
IOException

close

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


Copyright © 2001 - 2009 HSQL Development Group.