|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Portable
Portable provides an alternative serialization method. Instead of relying on reflection, each Portable is
created by a registered PortableFactory
.
Portable serialization that have the following advantages:
SerializationConfig.setPortableVersion(int)
)
PortableFactory
,
PortableWriter
,
PortableReader
,
ClassDefinition
,
DataSerializable
,
IdentifiedDataSerializable
,
SerializationConfig
Method Summary | |
---|---|
int |
getClassId()
Returns class identifier for this portable class. |
int |
getFactoryId()
Returns PortableFactory id for this portable class |
void |
readPortable(PortableReader reader)
Read portable fields using PortableReader |
void |
writePortable(PortableWriter writer)
Serialize this portable object using PortableWriter |
Method Detail |
---|
int getFactoryId()
int getClassId()
void writePortable(PortableWriter writer) throws IOException
writer
- PortableWriter
IOException
void readPortable(PortableReader reader) throws IOException
reader
- PortableReader
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |