Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


com.tangosol.io.pof.reflect
Class Codecs.AbstractCodec

java.lang.Object
  extended by com.tangosol.io.pof.reflect.Codecs.AbstractCodec

All Implemented Interfaces:
Codec
Direct Known Subclasses:
Codecs.DefaultCodec
Enclosing class:
Codecs

public abstract static class Codecs.AbstractCodec
extends java.lang.Object
implements Codec

Abstract Codec implementations that encodes objects by simply delegating to PofWriter.writeObject(int, Object). Generally the default writeObject implementation does not need to be modified as the current accommodation of types and conversion to POF is generally accepted, with the deserialization being more likely to be specific.

Since:
3.7.1

Constructor Summary
Codecs.AbstractCodec()
           

 

Method Summary
 void encode(PofWriter out, int index, java.lang.Object value)
          Serialize an object using the provided PofWriter.

 

Methods inherited from interface com.tangosol.io.pof.reflect.Codec
decode

 

Constructor Detail

Codecs.AbstractCodec

public Codecs.AbstractCodec()

Method Detail

encode

public void encode(PofWriter out,
                   int index,
                   java.lang.Object value)
            throws java.io.IOException
Serialize an object using the provided PofWriter.
Specified by:
encode in interface Codec
Parameters:
out - the PofWriter to read from
index - the index of the POF property to serialize
value - the value to serialize
Throws:
java.io.IOException - if an I/O error occurs

Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.