All Packages Class Hierarchy This Package Previous Next Index
Class jsnmp.SnmpUnsignedInt
java.lang.Object
|
+----jsnmp.SnmpVar
|
+----jsnmp.SnmpUnsignedInt
- public class SnmpUnsignedInt
- extends SnmpVar
Handles each occurance of an ASN.1 INTEGER mib variable, by extending
the SnmpVar abstract class.
-
value
-
-
SnmpUnsignedInt()
- Creates an SnmpInt variable with a zero initial value.
-
SnmpUnsignedInt(int)
- Creates an SnmpInt variable with an initial value of i.
-
decode(ByteArrayInputStream, int)
- Decodes an ASN.1 INTEGER to a BigInteger.
-
encode()
- Encodes an integer (arbitrary precision) into an ASN.1 INTEGER.
-
getValue()
- Returns the value of the ASN.1 INTEGER variable.
-
toString()
- Returns the value of the INTEGER variable as a printable string.
value
private BigInteger value
SnmpUnsignedInt
public SnmpUnsignedInt()
- Creates an SnmpInt variable with a zero initial value.
SnmpUnsignedInt
public SnmpUnsignedInt(int i)
- Creates an SnmpInt variable with an initial value of i.
getValue
public Object getValue()
- Returns the value of the ASN.1 INTEGER variable.
- Overrides:
- getValue in class SnmpVar
toString
public String toString()
- Returns the value of the INTEGER variable as a printable string.
- Overrides:
- toString in class SnmpVar
encode
public byte[] encode()
- Encodes an integer (arbitrary precision) into an ASN.1 INTEGER.
- Overrides:
- encode in class SnmpVar
decode
public void decode(ByteArrayInputStream pdu,
int length) throws SnmpException
- Decodes an ASN.1 INTEGER to a BigInteger.
- Overrides:
- decode in class SnmpVar
All Packages Class Hierarchy This Package Previous Next Index