public class JBaseJDBCBlob
extends java.lang.Object
implements java.sql.Blob
jBASE Blob object
Modifier | Constructor and Description |
---|---|
protected |
JBaseJDBCBlob() |
protected |
JBaseJDBCBlob(byte[] bytes) |
Modifier and Type | Method and Description |
---|---|
protected static java.nio.ByteBuffer |
checkBuffer(java.nio.ByteBuffer buffer,
int newDataLength) |
java.io.InputStream |
getBinaryStream()
java.sql.Blob#getBinaryStream()
|
byte[] |
getBytes(long pos,
int length)
java.sql.Blob#getBytes()
|
long |
length()
java.sql.Blob#length()
|
long |
position(java.sql.Blob pattern,
long start)
java.sql.Blob#position()
|
long |
position(byte[] pattern,
long start)
java.sql.Blob#position()
|
java.io.OutputStream |
setBinaryStream(long pos)
java.sql.Blob#setBinaryStream()
|
int |
setBytes(long pos,
byte[] bytes)
java.sql.Blob#setBytes()
|
int |
setBytes(long pos,
byte[] bytes,
int offset,
int len)
java.sql.Blob#setBytes()
|
void |
truncate(long len)
java.sql.Blob#truncate()
|
protected JBaseJDBCBlob()
protected JBaseJDBCBlob(byte[] bytes)
public long length() throws java.sql.SQLException
length
in interface java.sql.Blob
java.sql.SQLException
public byte[] getBytes(long pos, int length) throws java.sql.SQLException
getBytes
in interface java.sql.Blob
java.sql.SQLException
public java.io.InputStream getBinaryStream() throws java.sql.SQLException
getBinaryStream
in interface java.sql.Blob
java.sql.SQLException
public long position(byte[] pattern, long start) throws java.sql.SQLException
position
in interface java.sql.Blob
java.sql.SQLException
public long position(java.sql.Blob pattern, long start) throws java.sql.SQLException
position
in interface java.sql.Blob
java.sql.SQLException
public int setBytes(long pos, byte[] bytes) throws java.sql.SQLException
setBytes
in interface java.sql.Blob
java.sql.SQLException
public int setBytes(long pos, byte[] bytes, int offset, int len) throws java.sql.SQLException
setBytes
in interface java.sql.Blob
java.sql.SQLException
public java.io.OutputStream setBinaryStream(long pos) throws java.sql.SQLException
setBinaryStream
in interface java.sql.Blob
java.sql.SQLException
public void truncate(long len) throws java.sql.SQLException
truncate
in interface java.sql.Blob
java.sql.SQLException
protected static java.nio.ByteBuffer checkBuffer(java.nio.ByteBuffer buffer, int newDataLength)