com.adventnet.snmp.snmp2
Class SnmpNsap

java.lang.Object
  |
  +--com.adventnet.snmp.snmp2.SnmpVar
        |
        +--com.adventnet.snmp.snmp2.SnmpString
              |
              +--com.adventnet.snmp.snmp2.SnmpNsap
All Implemented Interfaces:
java.io.Serializable

public class SnmpNsap
extends SnmpString

Class of SNMP NSAP Variable - Sub-class of SnmpString. The SNMP Nsap type was created for the original version of SMIv2. However, this new type resulted in incompatibility between SNMPv1 and SNMPv2. It was removed while updating SMIv2, since its use was not allowed in IETF-developed MIB modules.

See Also:
Serialized Form

Fields inherited from class com.adventnet.snmp.snmp2.SnmpString
enc
 
Constructor Summary
SnmpNsap(byte[] b)
          Constructor : Takes an octet string.
SnmpNsap(java.lang.String s)
          Constructor takes a String object as its argument.
 
Method Summary
 java.lang.String toTagString()
          Converts the object to a printable string tagged with NSAP:
 
Methods inherited from class com.adventnet.snmp.snmp2.SnmpString
equals, getVarObject, toBytes, toByteString, toString, toValue
 
Methods inherited from class com.adventnet.snmp.snmp2.SnmpVar
createVariable, getError, getType, getTypeString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SnmpNsap

public SnmpNsap(java.lang.String s)
Constructor takes a String object as its argument.

SnmpNsap

public SnmpNsap(byte[] b)
Constructor : Takes an octet string.
Method Detail

toTagString

public java.lang.String toTagString()
Converts the object to a printable string tagged with NSAP:
Overrides:
toTagString in class SnmpString
Following copied from class: com.adventnet.snmp.snmp2.SnmpString
Returns:
the value of SnmpString object as a printable string where the type is tagged before the value with a Tag - STRING: .


Copyright (c)AdventNet Inc., 1996-2004