org.sakaiproject.component.framework.sql
Class BasicSqlService.StreamWithConnection

java.lang.Object
  extended byjava.io.InputStream
      extended byorg.sakaiproject.component.framework.sql.BasicSqlService.StreamWithConnection
Enclosing class:
BasicSqlService

public class BasicSqlService.StreamWithConnection
extends InputStream

StreamWithConnection is a cover over a stream that comes from a statmenet result in a connection, holding all these until closed.


Field Summary
protected  Connection m_conn
           
protected  PreparedStatement m_pstmt
           
protected  ResultSet m_result
           
protected  InputStream m_stream
           
 
Constructor Summary
BasicSqlService.StreamWithConnection(InputStream stream, ResultSet result, PreparedStatement pstmt, Connection conn)
           
 
Method Summary
 int available()
           
 void close()
           
protected  void finalize()
           
 void mark(int readlimit)
           
 boolean markSupported()
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 void reset()
           
 long skip(long n)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_conn

protected Connection m_conn

m_pstmt

protected PreparedStatement m_pstmt

m_result

protected ResultSet m_result

m_stream

protected InputStream m_stream
Constructor Detail

BasicSqlService.StreamWithConnection

public BasicSqlService.StreamWithConnection(InputStream stream,
                                            ResultSet result,
                                            PreparedStatement pstmt,
                                            Connection conn)
Method Detail

close

public void close()
           throws IOException
Throws:
IOException

finalize

protected void finalize()

read

public int read()
         throws IOException
Throws:
IOException

read

public int read(byte[] b)
         throws IOException
Throws:
IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws IOException
Throws:
IOException

skip

public long skip(long n)
          throws IOException
Throws:
IOException

available

public int available()
              throws IOException
Throws:
IOException

mark

public void mark(int readlimit)

reset

public void reset()
           throws IOException
Throws:
IOException

markSupported

public boolean markSupported()