All Packages Class Hierarchy This Package Previous Next Index
Class Snmp.ASNTypes
java.lang.Object
|
+----Snmp.ASNTypes
- public class ASNTypes
- extends Object
Container for ASN utility Functions and Parameters.
API Users will not really need to use this class directly.
This class has all it's methods and variables static
and does not need to be instantiated.
-
ASNTypes()
-
-
byteToInt(byte)
- Since JAVA does not support unsigned types, we need a converter
from unsigned byte to int that preserves the last 8 bits.
-
decodeVar(ByteArrayInputStream)
- Takes ASN encoded variable bytes and returns the corresponding object
Used in decoding a received PDU.
ASNTypes
public ASNTypes()
decodeVar
public static SnmpVar decodeVar(ByteArrayInputStream b) throws SnmpException
- Takes ASN encoded variable bytes and returns the corresponding object
Used in decoding a received PDU.
- Throws: SnmpException
- Throws SnmpException in case of decode errors.
byteToInt
public static int byteToInt(byte b)
- Since JAVA does not support unsigned types, we need a converter
from unsigned byte to int that preserves the last 8 bits.
All Packages Class Hierarchy This Package Previous Next Index