Active Virtual Network Management Prediction (AVNMP) Classes

snmp
Class AsnInteger

java.lang.Object
  |
  +--snmp.AsnObject
        |
        +--snmp.AsnInteger
All Implemented Interfaces:
java.io.Serializable

public class AsnInteger
extends AsnObject
implements java.io.Serializable

=================================================================== ASN.1 32-bit signed integer ===================================================================

Version:
$Revision: 1.1.1.1 $ $State: Exp $
Author:
Steve Bush
See Also:
Serialized Form

Fields inherited from class snmp.AsnObject
CONS_SEQ, GET_REQ_MSG, GET_RSP_MSG, GETNEXT_REQ_MSG, pdu_type, SET_REQ_MSG, SNMP_ERR_BADVALUE, SNMP_ERR_GENERR, SNMP_ERR_NOERROR, SNMP_ERR_NOSUCHNAME, SNMP_ERR_READONLY, SNMP_ERR_TOOBIG, SNMP_VERSION_1, TRP_REQ_MSG
 
Constructor Summary
AsnInteger(java.io.InputStream in)
          Retrieve an integer value from the input stream.
AsnInteger(int v)
          ============================================= Constructor
 
Method Summary
 int size()
          Get number of bytes integer occupies.
 java.lang.String toString()
          Return a user readable version of the integer value.
 int value()
          Return the current integer value.
 void write(java.io.OutputStream out)
          Output ASN.1 integer value
 
Methods inherited from class snmp.AsnObject
add, AsnBuildHeader, AsnMakeMe, AsnReadHeader, findPdu, LengthBytes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AsnInteger

public AsnInteger(int v)
============================================= Constructor
Parameters:
v - Integer for to output as ASN.1

AsnInteger

public AsnInteger(java.io.InputStream in)
           throws java.io.IOException
Retrieve an integer value from the input stream.
Parameters:
in - Input stream from which to decode integer value.
Method Detail

size

public int size()
Get number of bytes integer occupies.
Overrides:
size in class AsnObject
Returns:
Number of bytes integer occupies.

write

public void write(java.io.OutputStream out)
           throws java.io.IOException
Output ASN.1 integer value
Overrides:
write in class AsnObject
Parameters:
out - Output stream.

value

public int value()
Return the current integer value.
Returns:
The integer value.

toString

public java.lang.String toString()
Return a user readable version of the integer value.
Overrides:
toString in class java.lang.Object

Active Virtual Network Management Prediction (AVNMP) Classes