|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Codec
A Codec provides an interception point for any specific code that needs to be executed pre or post (de)serialization. In the case of deserialization this could be to return a concrete implementation and with serialization this could be to explicitly call a specific method on PofWriter
that is not carried out by PofWriter.writeObject(int, Object)
.
Method Summary | |
---|---|
java.lang.Object |
decode(PofReader in, int iProp) Deserialize an object from the provided PofReader . |
void |
encode(PofWriter out, int iProp, java.lang.Object value) Serialize an object using the provided PofWriter . |
Method Detail |
---|
java.lang.Object decode(PofReader in, int iProp) throws java.io.IOException
PofReader
. Implementing this interface allows introducing specific return implementations.in
- the PofReader to read fromiProp
- the index of the POF property to deserializejava.io.IOException
- if an I/O error occursvoid encode(PofWriter out, int iProp, java.lang.Object value) throws java.io.IOException
PofWriter
.out
- the PofWriter to read fromiProp
- the index of the POF property to serializevalue
- the value to serializejava.io.IOException
- if an I/O error occurs
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |