org.asnlab.asndt.runtime.conv
Class LongConverter

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

public class LongConverter
extends AsnConverter

The IntegerConverter can convert INTEGER value objct to/from long value.


Field Summary
static LongConverter INSTANCE
           
 
Constructor Summary
LongConverter()
           
 
Method Summary
 java.lang.Object convert(org.asnlab.asndt.runtime.type.BitBuffer buffer, org.asnlab.asndt.runtime.type.IntegerType type)
           
 java.lang.Object convert(org.asnlab.asndt.runtime.type.ByteBuffer buffer, org.asnlab.asndt.runtime.type.IntegerType type, int length)
           
 void convert(java.lang.Object object, org.asnlab.asndt.runtime.type.BitBuffer buffer, org.asnlab.asndt.runtime.type.IntegerType type)
           
 int convert(java.lang.Object object, org.asnlab.asndt.runtime.type.ByteBuffer buffer, org.asnlab.asndt.runtime.type.IntegerType type)
           
 java.lang.Object toObject(long value)
          Return the INTEGER value objct
 long toValue(java.lang.Object object)
          Return the long value
 
Methods inherited from class org.asnlab.asndt.runtime.conv.AsnConverter
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 LongConverter INSTANCE
Constructor Detail

LongConverter

public LongConverter()
Method Detail

convert

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

convert

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

convert

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

convert

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

toValue

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


toObject

public java.lang.Object toObject(long value)
Return the INTEGER value objct



Copyright �2009-2012 ASN Lab