net.ontopia.persistence.proxy
Class SQLReader
java.lang.Object
java.io.Reader
java.io.FilterReader
net.ontopia.persistence.proxy.SQLReader
- All Implemented Interfaces:
- java.io.Closeable, java.lang.Readable
public class SQLReader
- extends java.io.FilterReader
INTERNAL: Reader that knows its length.
- Since:
- 4.0
Field Summary |
protected java.sql.ResultSet |
rs
|
protected java.sql.Statement |
stm
|
Fields inherited from class java.io.FilterReader |
in |
Fields inherited from class java.io.Reader |
lock |
Constructor Summary |
SQLReader(java.io.Reader reader,
java.sql.ResultSet rs,
java.sql.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 |
rs
protected java.sql.ResultSet rs
stm
protected java.sql.Statement stm
SQLReader
public SQLReader(java.io.Reader reader,
java.sql.ResultSet rs,
java.sql.Statement stm)
throws java.sql.SQLException
- Throws:
java.sql.SQLException
read
public int read()
throws java.io.IOException
- Overrides:
read
in class java.io.FilterReader
- Throws:
java.io.IOException
read
public int read(char[] cbuf)
throws java.io.IOException
- Overrides:
read
in class java.io.Reader
- Throws:
java.io.IOException
read
public int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
- Overrides:
read
in class java.io.FilterReader
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Overrides:
close
in class java.io.FilterReader
- Throws:
java.io.IOException
Copyright © 2000-2012 Ontopia.