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.


Constructor Index

 o ASNTypes()

Method Index

 o byteToInt(byte)
Since JAVA does not support unsigned types, we need a converter from unsigned byte to int that preserves the last 8 bits.
 o decodeVar(ByteArrayInputStream)
Takes ASN encoded variable bytes and returns the corresponding object Used in decoding a received PDU.

Constructors

 o ASNTypes
 public ASNTypes()

Methods

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