net.ontopia.persistence.proxy
Class SQLReader

java.lang.Object
  extended by java.io.Reader
      extended by java.io.FilterReader
          extended by net.ontopia.persistence.proxy.SQLReader
All Implemented Interfaces:
Closeable, Readable

public class SQLReader
extends FilterReader

INTERNAL: Reader that knows its length.

Since:
4.0

Field Summary
protected  ResultSet rs
           
protected  Statement stm
           
 
Fields inherited from class java.io.FilterReader
in
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
SQLReader(Reader reader, ResultSet rs, Statement stm)
           
 
Method Summary
 void close()
           
 int read()
           
 int read(char[] cbuf)
           
 int read(char[] cbuf, int off, int len)
           
 
Methods inherited from class java.io.FilterReader
mark, markSupported, ready, reset, skip
 
Methods inherited from class java.io.Reader
read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

rs

protected ResultSet rs

stm

protected Statement stm
Constructor Detail

SQLReader

public SQLReader(Reader reader,
                 ResultSet rs,
                 Statement stm)
          throws SQLException
Throws:
SQLException
Method Detail

read

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

read

public int read(char[] cbuf)
         throws IOException
Overrides:
read in class Reader
Throws:
IOException

read

public int read(char[] cbuf,
                int off,
                int len)
         throws IOException
Overrides:
read in class FilterReader
Throws:
IOException

close

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


Copyright © 2000-2012 Ontopia.