org.asnlab.asndt.runtime.conv
Class IntegerConverter
java.lang.Object
org.asnlab.asndt.runtime.conv.AsnConverter
org.asnlab.asndt.runtime.conv.IntegerConverter
public class IntegerConverter
- extends AsnConverter
The IntegerConverter
can convert
INTEGER value objct to/from int value.
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final IntegerConverter INSTANCE
IntegerConverter
public IntegerConverter()
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