org.granite.messaging.jmf
Class DefaultCodecRegistry
java.lang.Object
org.granite.messaging.jmf.DefaultCodecRegistry
- All Implemented Interfaces:
- CodecRegistry, JMFConstants
public class DefaultCodecRegistry
- extends Object
- implements CodecRegistry
- Author:
- Franck WOLFF
| Fields inherited from interface org.granite.messaging.jmf.JMFConstants |
CLIENT_PERSISTENCE_COLLECTION_PACKAGE, JMF_1111_1010, JMF_1111_1011, JMF_1111_1100, JMF_1111_1101, JMF_1111_1110, JMF_1111_1111, JMF_ARRAY, JMF_ARRAY_LIST, JMF_BIG_DECIMAL, JMF_BIG_INTEGER, JMF_BOOLEAN, JMF_BOOLEAN_OBJECT, JMF_BYTE, JMF_BYTE_OBJECT, JMF_CHARACTER, JMF_CHARACTER_OBJECT, JMF_CLASS, JMF_DATE, JMF_DOUBLE, JMF_DOUBLE_OBJECT, JMF_ENUM, JMF_FLOAT, JMF_FLOAT_OBJECT, JMF_HASH_MAP, JMF_HASH_SET, JMF_INTEGER, JMF_INTEGER_OBJECT, JMF_LONG, JMF_LONG_OBJECT, JMF_NULL, JMF_OBJECT, JMF_OBJECT_END, JMF_SHORT, JMF_SHORT_OBJECT, JMF_SQL_DATE, JMF_SQL_TIME, JMF_SQL_TIMESTAMP, JMF_STRING, JMF_X011_1100, JMF_X011_1101, JMF_X011_1110, JMF_X011_1111, JMF_XX01_1110, JMF_XX01_1111, JMF_XXX0_1110, JMF_XXX0_1111, JMF_XXXX_0110, JMF_XXXX_0111, UTF8 |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultCodecRegistry
public DefaultCodecRegistry()
DefaultCodecRegistry
public DefaultCodecRegistry(List<ExtendedObjectCodec> extendedCodecs)
getNullCodec
public NullCodec getNullCodec()
- Specified by:
getNullCodec in interface CodecRegistry
getBooleanCodec
public BooleanCodec getBooleanCodec()
- Specified by:
getBooleanCodec in interface CodecRegistry
getCharacterCodec
public CharacterCodec getCharacterCodec()
- Specified by:
getCharacterCodec in interface CodecRegistry
getByteCodec
public ByteCodec getByteCodec()
- Specified by:
getByteCodec in interface CodecRegistry
getShortCodec
public ShortCodec getShortCodec()
- Specified by:
getShortCodec in interface CodecRegistry
getIntegerCodec
public IntegerCodec getIntegerCodec()
- Specified by:
getIntegerCodec in interface CodecRegistry
getLongCodec
public LongCodec getLongCodec()
- Specified by:
getLongCodec in interface CodecRegistry
getFloatCodec
public FloatCodec getFloatCodec()
- Specified by:
getFloatCodec in interface CodecRegistry
getDoubleCodec
public DoubleCodec getDoubleCodec()
- Specified by:
getDoubleCodec in interface CodecRegistry
getStringCodec
public StringCodec getStringCodec()
- Specified by:
getStringCodec in interface CodecRegistry
getCodec
public <T> StandardCodec<T> getCodec(int jmfType)
- Specified by:
getCodec in interface CodecRegistry
getCodec
public <T> StandardCodec<T> getCodec(Object v)
- Specified by:
getCodec in interface CodecRegistry
findExtendedEncoder
public ExtendedObjectCodec findExtendedEncoder(ExtendedObjectOutput out,
Object v)
- Specified by:
findExtendedEncoder in interface CodecRegistry
findExtendedDecoder
public ExtendedObjectCodec findExtendedDecoder(ExtendedObjectInput in,
String className)
- Specified by:
findExtendedDecoder in interface CodecRegistry
getPrimitivePropertyCodec
public CodecRegistry.PrimitivePropertyCodec getPrimitivePropertyCodec(Class<?> propertyCls)
- Specified by:
getPrimitivePropertyCodec in interface CodecRegistry
extractJmfType
public int extractJmfType(int parameterizedJmfType)
- Specified by:
extractJmfType in interface CodecRegistry
jmfTypeOfPrimitiveClass
public int jmfTypeOfPrimitiveClass(Class<?> cls)
- Specified by:
jmfTypeOfPrimitiveClass in interface CodecRegistry
primitiveClassOfJmfType
public Class<?> primitiveClassOfJmfType(int jmfType)
- Specified by:
primitiveClassOfJmfType in interface CodecRegistry
getStandardCodecs
protected List<StandardCodec<?>> getStandardCodecs()