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, writeExternal
public BlobType()
public BlobType(byte[] bytes)
public BlobType(Blob blob)
public InputStream getBinaryStream() throws SQLException
getBinaryStream
in interface Blob
SQLException
Blob.getBinaryStream()
public byte[] getBytes(long pos, int len) throws SQLException
getBytes
in interface Blob
SQLException
Blob.getBytes(long, int)
public long position(Blob pattern, long start) throws SQLException
position
in interface Blob
SQLException
Blob.position(java.sql.Blob, long)
public long position(byte[] pattern, long start) throws SQLException
position
in interface Blob
SQLException
Blob.position(byte[], long)
public OutputStream setBinaryStream(long pos) throws SQLException
setBinaryStream
in interface Blob
SQLException
Blob.setBinaryStream(long)
public int setBytes(long pos, byte[] bytes, int offset, int len) throws SQLException
setBytes
in interface Blob
SQLException
Blob.setBytes(long, byte[], int, int)
public int setBytes(long pos, byte[] bytes) throws SQLException
setBytes
in interface Blob
SQLException
Blob.setBytes(long, byte[])
public void truncate(long len) throws SQLException
truncate
in interface Blob
SQLException
Blob.truncate(long)
public void free() throws SQLException
free
in interface Blob
SQLException
public InputStream getBinaryStream(long pos, long len) throws SQLException
getBinaryStream
in interface Blob
SQLException
public static SerialBlob createBlob(byte[] bytes)
protected void readReference(ObjectInput in) throws IOException
readReference
in class Streamable<Blob>
IOException
protected void writeReference(DataOutput out) throws IOException
writeReference
in class Streamable<Blob>
IOException
public int compareTo(BlobType o)
compareTo
in interface Comparable<BlobType>
Copyright © 2019. All rights reserved.