snmp
Class SNMPBitString

java.lang.Object
  extended bysnmp.SNMPObject
      extended bysnmp.SNMPOctetString
          extended bysnmp.SNMPBitString

public class SNMPBitString
extends SNMPOctetString

Class representing a general string of bits.


Field Summary
protected  byte tag
           
 
Fields inherited from class snmp.SNMPOctetString
data
 
Constructor Summary
SNMPBitString()
          Create a zero-length bit string.
SNMPBitString(byte[] enc)
          Create a bit string from the supplied byte array.
SNMPBitString(java.lang.String stringData)
          Create a bit string from the bytes of the supplied String.
 
Methods inherited from class snmp.SNMPOctetString
equals, extractFromBEREncoding, getBEREncoding, getValue, hashCode, setValue, toHexString, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

tag

protected byte tag
Constructor Detail

SNMPBitString

public SNMPBitString()
Create a zero-length bit string.


SNMPBitString

public SNMPBitString(java.lang.String stringData)
Create a bit string from the bytes of the supplied String.


SNMPBitString

public SNMPBitString(byte[] enc)
Create a bit string from the supplied byte array. The array may be either user-supplied, or part of a retrieved BER encoding. Note that the BER encoding of the data of a bit string is just the raw bytes.