org.asnlab.asndt.runtime.conv
Class IntegerConverter

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

public class IntegerConverter
extends AsnConverter

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


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

IntegerConverter

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


toObject

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



Copyright �2009-2012 ASN Lab