public class BlobType extends Streamable<Blob> implements Blob, Comparable<BlobType>
CHARSET, ENCODING, length, reference, STREAMING_BATCH_SIZE_IN_BYTES| Constructor and Description |
|---|
BlobType() |
BlobType(Blob blob) |
BlobType(byte[] bytes) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(BlobType o) |
static SerialBlob |
createBlob(byte[] bytes) |
boolean |
equals(Object obj) |
void |
free() |
InputStream |
getBinaryStream() |
InputStream |
getBinaryStream(long pos,
long len) |
byte[] |
getBytes(long pos,
int len) |
int |
hashCode() |
long |
position(Blob pattern,
long start) |
long |
position(byte[] pattern,
long start) |
protected void |
readReference(ObjectInput in) |
OutputStream |
setBinaryStream(long pos) |
int |
setBytes(long pos,
byte[] bytes) |
int |
setBytes(long pos,
byte[] bytes,
int offset,
int len) |
void |
truncate(long len) |
protected void |
writeReference(DataOutput out) |
getLength, getReference, getReferenceStreamId, isBinary, length, readExternal, setReference, setReferenceStreamId, toString, writeExternalpublic BlobType()
public BlobType(byte[] bytes)
public BlobType(Blob blob)
public InputStream getBinaryStream() throws SQLException
getBinaryStream in interface BlobSQLExceptionBlob.getBinaryStream()public byte[] getBytes(long pos,
int len)
throws SQLException
getBytes in interface BlobSQLExceptionBlob.getBytes(long, int)public long position(Blob pattern, long start) throws SQLException
position in interface BlobSQLExceptionBlob.position(java.sql.Blob, long)public long position(byte[] pattern,
long start)
throws SQLException
position in interface BlobSQLExceptionBlob.position(byte[], long)public OutputStream setBinaryStream(long pos) throws SQLException
setBinaryStream in interface BlobSQLExceptionBlob.setBinaryStream(long)public int setBytes(long pos,
byte[] bytes,
int offset,
int len)
throws SQLException
setBytes in interface BlobSQLExceptionBlob.setBytes(long, byte[], int, int)public int setBytes(long pos,
byte[] bytes)
throws SQLException
setBytes in interface BlobSQLExceptionBlob.setBytes(long, byte[])public void truncate(long len)
throws SQLException
truncate in interface BlobSQLExceptionBlob.truncate(long)public void free()
throws SQLException
free in interface BlobSQLExceptionpublic InputStream getBinaryStream(long pos, long len) throws SQLException
getBinaryStream in interface BlobSQLExceptionpublic static SerialBlob createBlob(byte[] bytes)
protected void readReference(ObjectInput in) throws IOException
readReference in class Streamable<Blob>IOExceptionprotected void writeReference(DataOutput out) throws IOException
writeReference in class Streamable<Blob>IOExceptionpublic int compareTo(BlobType o)
compareTo in interface Comparable<BlobType>Copyright © 2017 JBoss by Red Hat. All rights reserved.