|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Manages the BLOB operations.
BLOBValue
Field Summary |
Fields inherited from interface ssdbms.ssd.SSDValue |
BLOB, BYTE_SEQUENCE, CLOB, INTEGER, NON_PRIMITIVE, REAL, STRING |
Method Summary | |
long |
length()
Returns the lenght in bytes of the storaged object. |
int |
read(long pos,
byte[] bytes)
Reads the BLOB from a given position. |
int |
read(long pos,
byte[] bytes,
int offset,
int length)
Set part of a byte array on the BLOB from a given position, if there exist previous bytes in a matching positions they will be overwrote, in other cases the will be appended. |
void |
setLength(long length)
Resizes the BLOB to the given length. |
int |
write(long pos,
byte[] bytes)
Writes in the BLOB from a given position. |
int |
write(long pos,
byte[] bytes,
int offset,
int length)
Writes in the BLOB from a given position. |
Method Detail |
public int read(long pos, byte[] bytes) throws OutOfBoundsException, BadFunctionException, FatalErrorException
pos
- The position of the BLOB from which it begins to read.bytes
- Where the readed content will be storaged.
OutOfBoundsException
BadFunctionException
FatalErrorException
public int read(long pos, byte[] bytes, int offset, int length) throws OutOfBoundsException, BadFunctionException, FatalErrorException
pos
- The position of the BLOB from which it begins to read.bytes
- Where the readed content will be storaged.offset
- The start offset of bytes
.length
- The maximum number of bytes to read.
OutOfBoundsException
BadFunctionException
FatalErrorException
public int write(long pos, byte[] bytes) throws OutOfBoundsException, BadFunctionException, FatalErrorException
pos
- The position of the BLOB from which it begins to write.bytes
- Where the content to write is storaged.
OutOfBoundsException
BadFunctionException
FatalErrorException
public int write(long pos, byte[] bytes, int offset, int length) throws OutOfBoundsException, BadFunctionException, FatalErrorException
pos
- The position of the BLOB from which it begins to write.bytes
- Where the content to write is storaged.offset
- The start offset of bytes
.length
- The maximum number of bytes to write.
OutOfBoundsException
BadFunctionException
FatalErrorException
public void setLength(long length) throws OutOfBoundsException, BadFunctionException, FatalErrorException
length
- The new length of the BLOB in bytes.
OutOfBoundsException
BadFunctionException
FatalErrorException
public long length() throws BadFunctionException, FatalErrorException
BadFunctionException
FatalErrorException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |