org.granite.messaging.jmf.codec.std.impl
Class FloatCodecImpl

java.lang.Object
  extended by org.granite.messaging.jmf.codec.std.impl.AbstractStandardCodec<Float>
      extended by org.granite.messaging.jmf.codec.std.impl.FloatCodecImpl
All Implemented Interfaces:
BijectiveCodec<Float>, PrimitiveCodec<Float>, StandardCodec<Float>, FloatCodec, JMFConstants

public class FloatCodecImpl
extends AbstractStandardCodec<Float>
implements FloatCodec

Author:
Franck WOLFF

Field Summary
 
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
 
Constructor Summary
FloatCodecImpl()
           
 
Method Summary
 Float decode(InputContext ctx, int parameterizedJmfType)
           
 float decodePrimitive(InputContext ctx)
           
 void dump(DumpContext ctx, int parameterizedJmfType)
           
 void encode(OutputContext ctx, Float v)
           
 void encodePrimitive(OutputContext ctx, float v)
           
 Class<?> getObjectClass()
           
 int getObjectType()
           
 Class<?> getPrimitiveClass()
           
 int getPrimitiveType()
           
static float readFloatData(InputContext ctx, int type)
           
static void writeFloatData(OutputContext ctx, int jmfType, float v)
           
 
Methods inherited from class org.granite.messaging.jmf.codec.std.impl.AbstractStandardCodec
escape, escape, escape, newBadTypeJMFEncodingException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FloatCodecImpl

public FloatCodecImpl()
Method Detail

getObjectType

public int getObjectType()
Specified by:
getObjectType in interface StandardCodec<Float>

getObjectClass

public Class<?> getObjectClass()
Specified by:
getObjectClass in interface BijectiveCodec<Float>

getPrimitiveType

public int getPrimitiveType()
Specified by:
getPrimitiveType in interface PrimitiveCodec<Float>

getPrimitiveClass

public Class<?> getPrimitiveClass()
Specified by:
getPrimitiveClass in interface PrimitiveCodec<Float>

encode

public void encode(OutputContext ctx,
                   Float v)
            throws IOException
Specified by:
encode in interface StandardCodec<Float>
Specified by:
encode in interface FloatCodec
Throws:
IOException

decode

public Float decode(InputContext ctx,
                    int parameterizedJmfType)
             throws IOException
Specified by:
decode in interface StandardCodec<Float>
Specified by:
decode in interface FloatCodec
Throws:
IOException

encodePrimitive

public void encodePrimitive(OutputContext ctx,
                            float v)
                     throws IOException
Specified by:
encodePrimitive in interface FloatCodec
Throws:
IOException

decodePrimitive

public float decodePrimitive(InputContext ctx)
                      throws IOException
Specified by:
decodePrimitive in interface FloatCodec
Throws:
IOException

dump

public void dump(DumpContext ctx,
                 int parameterizedJmfType)
          throws IOException
Specified by:
dump in interface StandardCodec<Float>
Throws:
IOException

writeFloatData

public static void writeFloatData(OutputContext ctx,
                                  int jmfType,
                                  float v)
                           throws IOException
Throws:
IOException

readFloatData

public static float readFloatData(InputContext ctx,
                                  int type)
                           throws IOException
Throws:
IOException