public class Blob extends ObjectWithUID implements Blob, Comparable
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
blob |
protected Connection |
conn |
entryUID, objectIndex| Constructor and Description |
|---|
Blob(byte[] blob) |
Blob(byte[] blob,
Connection conn) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object other) |
boolean |
equals(Object ob) |
void |
free() |
OutputStream |
getBinaryOutputStream() |
InputStream |
getBinaryStream() |
InputStream |
getBinaryStream(long pos,
long length) |
byte[] |
getBytes(long pos,
int length) |
int |
hashCode() |
long |
length() |
long |
position(Blob pattern,
long start) |
long |
position(byte[] pattern,
long start) |
OutputStream |
setBinaryStream(long pos) |
int |
setBytes(long pos,
byte[] bytes) |
int |
setBytes(long pos,
byte[] bytes,
int offset,
int len) |
void |
setConnection(Connection conn) |
String |
toString() |
void |
truncate(long len) |
getEntryUID, getObjectIndex, setEntryUID, setObjectIndexprotected byte[] blob
protected transient Connection conn
public Blob(byte[] blob,
Connection conn)
throws SQLException
SQLExceptionpublic Blob(byte[] blob)
public long length()
throws SQLException
length in interface BlobSQLExceptionpublic void truncate(long len)
throws SQLException
truncate in interface BlobSQLExceptionpublic byte[] getBytes(long pos,
int length)
throws SQLException
getBytes in interface BlobSQLExceptionpublic int setBytes(long pos,
byte[] bytes)
throws SQLException
setBytes in interface BlobSQLExceptionpublic int setBytes(long pos,
byte[] bytes,
int offset,
int len)
throws SQLException
setBytes in interface BlobSQLExceptionpublic long position(byte[] pattern,
long start)
throws SQLException
position in interface BlobSQLExceptionpublic InputStream getBinaryStream() throws SQLException
getBinaryStream in interface BlobSQLExceptionpublic OutputStream getBinaryOutputStream() throws SQLException
SQLExceptionpublic OutputStream setBinaryStream(long pos) throws SQLException
setBinaryStream in interface BlobSQLExceptionpublic long position(Blob pattern, long start) throws SQLException
position in interface BlobSQLExceptionpublic int compareTo(Object other) throws ClassCastException
compareTo in interface ComparableClassCastExceptionpublic void setConnection(Connection conn)
public void free()
throws SQLException
free in interface BlobSQLExceptionpublic InputStream getBinaryStream(long pos, long length) throws SQLException
getBinaryStream in interface BlobSQLExceptionCopyright © GigaSpaces.