Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


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

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

All Implemented Interfaces:
Codec
Enclosing class:
Codecs

public static class Codecs.DefaultCodec
extends Codecs.AbstractCodec

Implementation of Codec that simply delegates to PofReader.readObject(int) and PofWriter.writeObject(int, Object) to deserialize and serialize an object.

Since:
3.7.1

Constructor Summary
Codecs.DefaultCodec()
           

 

Method Summary
 java.lang.Object decode(PofReader in, int index)
          Deserialize an object from the provided PofReader.

 

Methods inherited from class com.tangosol.io.pof.reflect.Codecs.AbstractCodec
encode

 

Constructor Detail

Codecs.DefaultCodec

public Codecs.DefaultCodec()

Method Detail

decode

public java.lang.Object decode(PofReader in,
                               int index)
                        throws java.io.IOException
Deserialize an object from the provided PofReader. Implementing this interface allows introducing specific return implementations.
Parameters:
in - the PofReader to read from
index - the index of the POF property to deserialize
Returns:
a specific implementation of the POF property
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.