|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Interace of factory for packing/unpacking raw binary objects
| Method Summary | |
int |
pack(java.lang.Object obj,
byte[] arr,
int off)
Pack raw binary object to byte array |
int |
size(java.lang.Object obj)
Get size of raw binary object in bytes |
boolean |
supports(java.lang.Class cls)
Check if specified las supported by thisd factory |
java.lang.Object |
unpack(java.lang.Class cls,
byte[] arr,
int off,
int size)
Unpack raw binary object |
| Method Detail |
public int size(java.lang.Object obj)
obj - raw binary object
public int pack(java.lang.Object obj,
byte[] arr,
int off)
obj - raw binary objectarr - array to store packed image of raw binary objectoff - offset in the array where object should be packed
RawBinary.size method.
public java.lang.Object unpack(java.lang.Class cls,
byte[] arr,
int off,
int size)
cls - class of raw binary objectarr - array containing packed raw binary objectoff - offset of packed binary object in the arraysize - size of packed binary object
public boolean supports(java.lang.Class cls)
cls - raw binary object class
true if factory is able to pack/unpack instances of these class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||