Skip navigation links

Oracle® Coherence Java API Reference
Release 3.7.1.0

E22843-01


com.tangosol.io.pof.reflect
Class Codecs

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


public class Codecs
extends java.lang.Object

Codecs is a container for accessing default Codecs.AbstractCodec implementations.

Since:
3.7.1
Author:
hr

Nested Class Summary
static class Codecs.AbstractCodec
          Abstract Codec implementations that encodes objects by simply delegating to PofWriter.writeObject(int, Object).
static class Codecs.DefaultCodec
          Implementation of Codec that simply delegates to PofReader.readObject(int) and PofWriter.writeObject(int, Object) to deserialize and serialize an object.

 

Field Summary
static Codec DEFAULT_CODEC
          A singleton instance of a Codecs.DefaultCodec

 

Constructor Summary
Codecs()
           

 

Method Summary
static Codec getCodec(java.lang.Class clz)
          Based on the Class<Codec> clz provided either instantiate if it is unknown or use a default codec.

 

Field Detail

DEFAULT_CODEC

public static final Codec DEFAULT_CODEC
A singleton instance of a Codecs.DefaultCodec

Constructor Detail

Codecs

public Codecs()

Method Detail

getCodec

public static Codec getCodec(java.lang.Class clz)
Based on the Class<Codec> clz provided either instantiate if it is unknown or use a default codec.
Parameters:
clz - the class defining the codec to use or the type the codec should handle
Returns:
Codec codec that supports encoding and decoding of objects of the specified type

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.