Package com.impossibl.jdbc.spy
Class BlobRelay
- java.lang.Object
-
- com.impossibl.jdbc.spy.BlobRelay
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfree()InputStreamgetBinaryStream()InputStreamgetBinaryStream(long pos, long length)byte[]getBytes(long pos, int length)BlobgetTarget()longlength()longposition(byte[] pattern, long start)longposition(Blob pattern, long start)OutputStreamsetBinaryStream(long pos)intsetBytes(long pos, byte[] bytes)intsetBytes(long pos, byte[] bytes, int offset, int len)voidtruncate(long len)
-
-
-
Field Detail
-
target
public Blob target
-
listener
public com.impossibl.jdbc.spy.BlobListener listener
-
-
Constructor Detail
-
BlobRelay
public BlobRelay(Blob target, com.impossibl.jdbc.spy.BlobListener listener)
-
-
Method Detail
-
setBytes
public int setBytes(long pos, byte[] bytes) throws SQLException- Specified by:
setBytesin interfaceBlob- Throws:
SQLException
-
setBinaryStream
public OutputStream setBinaryStream(long pos) throws SQLException
- Specified by:
setBinaryStreamin interfaceBlob- Throws:
SQLException
-
position
public long position(byte[] pattern, long start) throws SQLException- Specified by:
positionin interfaceBlob- Throws:
SQLException
-
setBytes
public int setBytes(long pos, byte[] bytes, int offset, int len) throws SQLException- Specified by:
setBytesin interfaceBlob- Throws:
SQLException
-
getBinaryStream
public InputStream getBinaryStream(long pos, long length) throws SQLException
- Specified by:
getBinaryStreamin interfaceBlob- Throws:
SQLException
-
truncate
public void truncate(long len) throws SQLException- Specified by:
truncatein interfaceBlob- Throws:
SQLException
-
getBytes
public byte[] getBytes(long pos, int length) throws SQLException- Specified by:
getBytesin interfaceBlob- Throws:
SQLException
-
position
public long position(Blob pattern, long start) throws SQLException
- Specified by:
positionin interfaceBlob- Throws:
SQLException
-
length
public long length() throws SQLException- Specified by:
lengthin interfaceBlob- Throws:
SQLException
-
getBinaryStream
public InputStream getBinaryStream() throws SQLException
- Specified by:
getBinaryStreamin interfaceBlob- Throws:
SQLException
-
free
public void free() throws SQLException- Specified by:
freein interfaceBlob- Throws:
SQLException
-
-