org.asnlab.asndt.runtime.conv
Class DoubleConverter

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.DoubleConverter

public class DoubleConverter
extends RealConverter

The DoubleConverter can convert real value objct to/from double value.


Field Summary
static DoubleConverter INSTANCE
           
 
Constructor Summary
DoubleConverter()
           
 
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(double value)
          Return the REAL value objct
 double toValue(java.lang.Object object)
          Return the double 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 DoubleConverter INSTANCE
Constructor Detail

DoubleConverter

public DoubleConverter()
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 double toValue(java.lang.Object object)
Return the double value


toObject

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



Copyright �2009-2012 ASN Lab