org.apache.derbyDemo.vtis.core
Class StringColumnVTI.SimpleBlob
java.lang.Object
org.apache.derbyDemo.vtis.core.StringColumnVTI.SimpleBlob
- All Implemented Interfaces:
- java.sql.Blob
- Enclosing class:
- StringColumnVTI
public static final class StringColumnVTI.SimpleBlob
- extends java.lang.Object
- implements java.sql.Blob
A crude Blob implementation.
|
Field Summary |
private byte[] |
_bytes
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.sql.Blob |
free, getBinaryStream |
_bytes
private byte[] _bytes
StringColumnVTI.SimpleBlob
public StringColumnVTI.SimpleBlob(byte[] bytes)
getBinaryStream
public java.io.InputStream getBinaryStream()
- Specified by:
getBinaryStream in interface java.sql.Blob
getBytes
public byte[] getBytes(long position,
int length)
- Specified by:
getBytes in interface java.sql.Blob
length
public long length()
- Specified by:
length in interface java.sql.Blob
position
public long position(java.sql.Blob pattern,
long start)
- Specified by:
position in interface java.sql.Blob
position
public long position(byte[] pattern,
long start)
- Specified by:
position in interface java.sql.Blob
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals in class java.lang.Object
setBytes
public int setBytes(long arg0,
byte[] arg1)
throws java.sql.SQLException
- Specified by:
setBytes in interface java.sql.Blob
- Throws:
java.sql.SQLException
setBytes
public int setBytes(long arg0,
byte[] arg1,
int arg2,
int arg3)
throws java.sql.SQLException
- Specified by:
setBytes in interface java.sql.Blob
- Throws:
java.sql.SQLException
setBinaryStream
public java.io.OutputStream setBinaryStream(long arg0)
throws java.sql.SQLException
- Specified by:
setBinaryStream in interface java.sql.Blob
- Throws:
java.sql.SQLException
truncate
public void truncate(long arg0)
throws java.sql.SQLException
- Specified by:
truncate in interface java.sql.Blob
- Throws:
java.sql.SQLException