|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--MyBlob
A class used as an SQL blob object.
| Field Summary | |
protected byte[] |
data
the byte array that stores the actual data |
static int |
MAXLEN
the capacity of a single blob |
protected MyBlob |
next
a pointer to another blob to form a linked list |
| Constructor Summary | |
MyBlob(byte[] buf,
int len)
initialize a blob |
|
| Method Summary | |
MyBlob |
append(byte[] buf,
int len)
Append a byte array to the end of the existing array. |
java.io.InputStream |
getBinaryStream()
get input of the blob in the form of a binary stream |
byte[] |
getData()
get the actual data |
MyBlob |
getNext()
get the next node in the linked list |
int |
length()
get the length of data |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Field Detail |
public static int MAXLEN
protected byte[] data
protected MyBlob next
| Constructor Detail |
public MyBlob(byte[] buf,
int len)
buf - data to be storedlen - the length of data to be stored| Method Detail |
public MyBlob append(byte[] buf,
int len)
buf - the array to append.len - the number of bytes to append.public int length()
public byte[] getData()
public MyBlob getNext()
public java.io.InputStream getBinaryStream()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||