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 voidfree()InputStreamgetAsciiStream()ReadergetCharacterStream()ReadergetCharacterStream(long pos, long length)StringgetSubString(long pos, int length)ClobgetTarget()longlength()longposition(String searchstr, long start)longposition(Clob searchstr, long start)OutputStreamsetAsciiStream(long pos)WritersetCharacterStream(long pos)intsetString(long pos, String str)intsetString(long pos, String str, int offset, int len)voidtruncate(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:
truncatein interfaceClob- Throws:
SQLException
-
setAsciiStream
public OutputStream setAsciiStream(long pos) throws SQLException
- Specified by:
setAsciiStreamin interfaceClob- Throws:
SQLException
-
free
public void free() throws SQLException- Specified by:
freein interfaceClob- Throws:
SQLException
-
position
public long position(Clob searchstr, long start) throws SQLException
- Specified by:
positionin interfaceClob- Throws:
SQLException
-
getCharacterStream
public Reader getCharacterStream(long pos, long length) throws SQLException
- Specified by:
getCharacterStreamin interfaceClob- Throws:
SQLException
-
getSubString
public String getSubString(long pos, int length) throws SQLException
- Specified by:
getSubStringin interfaceClob- Throws:
SQLException
-
setString
public int setString(long pos, String str) throws SQLException- Specified by:
setStringin interfaceClob- Throws:
SQLException
-
getCharacterStream
public Reader getCharacterStream() throws SQLException
- Specified by:
getCharacterStreamin interfaceClob- Throws:
SQLException
-
setString
public int setString(long pos, String str, int offset, int len) throws SQLException- Specified by:
setStringin interfaceClob- Throws:
SQLException
-
setCharacterStream
public Writer setCharacterStream(long pos) throws SQLException
- Specified by:
setCharacterStreamin interfaceClob- Throws:
SQLException
-
position
public long position(String searchstr, long start) throws SQLException
- Specified by:
positionin interfaceClob- Throws:
SQLException
-
length
public long length() throws SQLException- Specified by:
lengthin interfaceClob- Throws:
SQLException
-
getAsciiStream
public InputStream getAsciiStream() throws SQLException
- Specified by:
getAsciiStreamin interfaceClob- Throws:
SQLException
-
-