org.asnlab.asndt.runtime.conv
Class FloatConverter

java.lang.Object
  extended by org.asnlab.asndt.runtime.conv.AsnConverter
      extended by org.asnlab.asndt.runtime.conv.RealConverter
          extended by org.asnlab.asndt.runtime.conv.FloatConverter

public class FloatConverter
extends RealConverter

The FloatConverter can convert REAL value objct to/from float value.


Field Summary
static FloatConverter INSTANCE
           
 
Constructor Summary
FloatConverter()
           
 
Method Summary
 java.lang.Object convert(org.asnlab.asndt.runtime.type.BitBuffer buffer, org.asnlab.asndt.runtime.type.RealType type)
           
 java.lang.Object convert(org.asnlab.asndt.runtime.type.ByteBuffer buffer, org.asnlab.asndt.runtime.type.RealType type, int length)
           
 void convert(java.lang.Object object, org.asnlab.asndt.runtime.type.BitBuffer buffer, org.asnlab.asndt.runtime.type.RealType type)
           
 int convert(java.lang.Object object, org.asnlab.asndt.runtime.type.ByteBuffer buffer, org.asnlab.asndt.runtime.type.RealType type)
           
 java.lang.Object toObject(float value)
          Return the REAL value objct
 float toValue(java.lang.Object object)
          Return the float value
 
Methods inherited from class org.asnlab.asndt.runtime.conv.AsnConverter
convert, convert, convert, convert, createAsnConverterConverter, createAsnConverterType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final FloatConverter INSTANCE
Constructor Detail

FloatConverter

public FloatConverter()
Method Detail

convert

public int convert(java.lang.Object object,
                   org.asnlab.asndt.runtime.type.ByteBuffer buffer,
                   org.asnlab.asndt.runtime.type.RealType type)
Overrides:
convert in class RealConverter

convert

public java.lang.Object convert(org.asnlab.asndt.runtime.type.ByteBuffer buffer,
                                org.asnlab.asndt.runtime.type.RealType type,
                                int length)
Overrides:
convert in class RealConverter

convert

public void convert(java.lang.Object object,
                    org.asnlab.asndt.runtime.type.BitBuffer buffer,
                    org.asnlab.asndt.runtime.type.RealType type)
Overrides:
convert in class RealConverter

convert

public java.lang.Object convert(org.asnlab.asndt.runtime.type.BitBuffer buffer,
                                org.asnlab.asndt.runtime.type.RealType type)
Overrides:
convert in class RealConverter

toValue

public float toValue(java.lang.Object object)
Return the float value


toObject

public java.lang.Object toObject(float value)
Return the REAL value objct



Copyright �2009-2012 ASN Lab