|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--goodsjpi.SerializableObjectFactory
Factory for raw binary objects using Java serialization mechanism
| Constructor Summary | |
SerializableObjectFactory()
|
|
| Method Summary | |
int |
pack(java.lang.Object obj,
byte[] arr,
int offs)
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 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SerializableObjectFactory()
| Method Detail |
public int size(java.lang.Object obj)
RawBinaryFactory
size in interface RawBinaryFactoryobj - raw binary object
public int pack(java.lang.Object obj,
byte[] arr,
int offs)
RawBinaryFactory
pack in interface RawBinaryFactoryobj - raw binary objectarr - array to store packed image of raw binary objectoffs - 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)
RawBinaryFactory
unpack in interface RawBinaryFactorycls - 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)
RawBinaryFactory
supports in interface RawBinaryFactorycls - 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 | |||||||||