Active Virtual Network Management Prediction (AVNMP) Classes

snmp
Class AsnUnsInteger

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

public class AsnUnsInteger
extends AsnObject
implements java.io.Serializable

ASN.1 32-bit signed integer class

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
AsnUnsInteger(java.io.InputStream in)
           
AsnUnsInteger(int v)
          Constructor
 
Method Summary
 int size()
          Get number of bytes integer occupies.
 java.lang.String toString()
           
 int value()
           
 void write(java.io.OutputStream out)
          Output integer
 
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

AsnUnsInteger

public AsnUnsInteger(int v)
Constructor
Parameters:
v - The value to encode.

AsnUnsInteger

public AsnUnsInteger(java.io.InputStream in)
              throws java.io.IOException
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 integer
Overrides:
write in class AsnObject
Parameters:
out - The output stream.

value

public int value()
Returns:
The integer value.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
the string representation.

Active Virtual Network Management Prediction (AVNMP) Classes