Package com.impossibl.jdbc.spy
Class ClobRelay
- java.lang.Object
-
- com.impossibl.jdbc.spy.ClobRelay
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
free()
InputStream
getAsciiStream()
Reader
getCharacterStream()
Reader
getCharacterStream(long pos, long length)
String
getSubString(long pos, int length)
Clob
getTarget()
long
length()
long
position(String searchstr, long start)
long
position(Clob searchstr, long start)
OutputStream
setAsciiStream(long pos)
Writer
setCharacterStream(long pos)
int
setString(long pos, String str)
int
setString(long pos, String str, int offset, int len)
void
truncate(long len)
-
-
-
Field Detail
-
target
public Clob target
-
listener
public com.impossibl.jdbc.spy.ClobListener listener
-
-
Constructor Detail
-
ClobRelay
public ClobRelay(Clob target, com.impossibl.jdbc.spy.ClobListener listener)
-
-
Method Detail
-
truncate
public void truncate(long len) throws SQLException
- Specified by:
truncate
in interfaceClob
- Throws:
SQLException
-
setAsciiStream
public OutputStream setAsciiStream(long pos) throws SQLException
- Specified by:
setAsciiStream
in interfaceClob
- Throws:
SQLException
-
free
public void free() throws SQLException
- Specified by:
free
in interfaceClob
- Throws:
SQLException
-
position
public long position(Clob searchstr, long start) throws SQLException
- Specified by:
position
in interfaceClob
- Throws:
SQLException
-
getCharacterStream
public Reader getCharacterStream(long pos, long length) throws SQLException
- Specified by:
getCharacterStream
in interfaceClob
- Throws:
SQLException
-
getSubString
public String getSubString(long pos, int length) throws SQLException
- Specified by:
getSubString
in interfaceClob
- Throws:
SQLException
-
setString
public int setString(long pos, String str) throws SQLException
- Specified by:
setString
in interfaceClob
- Throws:
SQLException
-
getCharacterStream
public Reader getCharacterStream() throws SQLException
- Specified by:
getCharacterStream
in interfaceClob
- Throws:
SQLException
-
setString
public int setString(long pos, String str, int offset, int len) throws SQLException
- Specified by:
setString
in interfaceClob
- Throws:
SQLException
-
setCharacterStream
public Writer setCharacterStream(long pos) throws SQLException
- Specified by:
setCharacterStream
in interfaceClob
- Throws:
SQLException
-
position
public long position(String searchstr, long start) throws SQLException
- Specified by:
position
in interfaceClob
- Throws:
SQLException
-
length
public long length() throws SQLException
- Specified by:
length
in interfaceClob
- Throws:
SQLException
-
getAsciiStream
public InputStream getAsciiStream() throws SQLException
- Specified by:
getAsciiStream
in interfaceClob
- Throws:
SQLException
-
-