All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class jsnmp.ASNTypes

java.lang.Object
   |
   +----jsnmp.ASNTypes

public class ASNTypes
extends Object

Variable Index

 o ASN_APPLICATION
 o ASN_BIT8
 o ASN_BIT_STR
 o ASN_BOOLEAN
 o ASN_CONSTRUCTOR
 o ASN_CONTEXT
 o ASN_EXTENSION_ID
 o ASN_INTEGER
 o ASN_LONG_LEN
 o ASN_NULL
 o ASN_OBJECT_ID
 o ASN_OCTET_STR
 o ASN_PRIMITIVE
 o ASN_PRIVATE
 o ASN_SEQUENCE
 o ASN_SET
 o ASN_UNIVERSAL
 o MAX_OID_LEN
 o MAX_SUBID

Constructor Index

 o ASNTypes()

Method Index

 o byteToInt(byte)
 o decodeVar(ByteArrayInputStream)
 o getLength(ByteArrayInputStream)
 o getTagLength(ByteArrayInputStream)
Parse ASN header and return array with type, length.
 o IS_CONSTRUCTOR(byte)
 o IS_EXTENSION_ID(byte)
 o putLength(int)
Build ASN length and return array of bytes
 o putTagLength(byte, int)
build_header - builds an ASN header for an object with the type and length specified.

Variables

 o MAX_SUBID
 static int MAX_SUBID
 o MAX_OID_LEN
 static int MAX_OID_LEN
 o ASN_BOOLEAN
 static final byte ASN_BOOLEAN
 o ASN_INTEGER
 static final byte ASN_INTEGER
 o ASN_BIT_STR
 static final byte ASN_BIT_STR
 o ASN_OCTET_STR
 static final byte ASN_OCTET_STR
 o ASN_NULL
 static final byte ASN_NULL
 o ASN_OBJECT_ID
 static final byte ASN_OBJECT_ID
 o ASN_SEQUENCE
 static final byte ASN_SEQUENCE
 o ASN_SET
 static final byte ASN_SET
 o ASN_UNIVERSAL
 static final byte ASN_UNIVERSAL
 o ASN_APPLICATION
 static final byte ASN_APPLICATION
 o ASN_CONTEXT
 static final byte ASN_CONTEXT
 o ASN_PRIVATE
 static final byte ASN_PRIVATE
 o ASN_PRIMITIVE
 static final byte ASN_PRIMITIVE
 o ASN_CONSTRUCTOR
 static final byte ASN_CONSTRUCTOR
 o ASN_LONG_LEN
 static final byte ASN_LONG_LEN
 o ASN_EXTENSION_ID
 static final byte ASN_EXTENSION_ID
 o ASN_BIT8
 static final byte ASN_BIT8

Constructors

 o ASNTypes
 public ASNTypes()

Methods

 o decodeVar
 public static SnmpVar decodeVar(ByteArrayInputStream pdu) throws SnmpException
 o putTagLength
 static byte[] putTagLength(byte type,
                            int length)
build_header - builds an ASN header for an object with the type and length specified.

 o getTagLength
 static int[] getTagLength(ByteArrayInputStream pdu) throws SnmpException
Parse ASN header and return array with type, length. Interprets the type and length of the current object. Throws SnmpException in case of failure

 o putLength
 static byte[] putLength(int length)
Build ASN length and return array of bytes

 o getLength
 private static int getLength(ByteArrayInputStream pdu) throws SnmpException
 o byteToInt
 public static int byteToInt(byte b)
 o IS_CONSTRUCTOR
 static boolean IS_CONSTRUCTOR(byte b)
 o IS_EXTENSION_ID
 static boolean IS_EXTENSION_ID(byte b)

All Packages  Class Hierarchy  This Package  Previous  Next  Index