com.adventnet.snmp.snmp2
Class SnmpBits
java.lang.Object
|
+--com.adventnet.snmp.snmp2.SnmpVar
|
+--com.adventnet.snmp.snmp2.SnmpString
|
+--com.adventnet.snmp.snmp2.SnmpBits
- All Implemented Interfaces:
- java.io.Serializable
- public class SnmpBits
- extends SnmpString
Class of SNMP Bits Variable - Sub-class of SnmpString.
This class can be used to create an object of type SnmpString.
It also has methods to retrive the value in various forms(eg. String,
byte).
- See Also:
- Serialized Form
Fields inherited from class com.adventnet.snmp.snmp2.SnmpString |
enc |
Constructor Summary |
SnmpBits(byte[] b)
Constructs a new SnmpBits by taking an octet string. |
SnmpBits(java.lang.String value,
int radix)
Constructs a new SnmpBits by taking a string value and the radix. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SnmpBits
public SnmpBits(byte[] b)
- Constructs a new SnmpBits by taking an octet string.
The first byte should contain the count of bits in the last byte,
which are not relevant.
SnmpBits
public SnmpBits(java.lang.String value,
int radix)
throws SnmpException
- Constructs a new SnmpBits by taking a string value and the radix.
The radix can be either 2 or 16 which represents binary and hex respectively.
Padding of zero's is done at the end of the string value,
when the length of the given string is not a multiple of 8.
Copyright (c)AdventNet Inc., 1996-2004