|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.snmp.snmp2.SnmpVar
com.adventnet.snmp.snmp2.SnmpString
com.adventnet.snmp.snmp2.SnmpNsap
public class SnmpNsap
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.
| Field Summary |
|---|
| Fields inherited from class com.adventnet.snmp.snmp2.SnmpString |
|---|
byteValue, enc, s_emptyString, value |
| Fields inherited from class com.adventnet.snmp.snmp2.SnmpVar |
|---|
Type, varbindErrorVal |
| Constructor Summary | |
|---|---|
SnmpNsap()
Empty Constructor |
|
SnmpNsap(byte[] b)
Constructor : Takes an octet string. |
|
SnmpNsap(java.lang.String s)
Constructor takes a String object as its argument. |
|
| Method Summary | |
|---|---|
(package private) int |
encode(byte[] buff,
int space)
ASN encoder |
java.lang.String |
getNumericValueAsString()
This method will throw UnsupportedOperationException since this is not a numeric data type. |
(package private) static SnmpVar |
newInstance(byte[] b)
Factory method for decode |
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)
public SnmpNsap(byte[] b)
| Method Detail |
|---|
static SnmpVar newInstance(byte[] b)
public java.lang.String toTagString()
toTagString in class SnmpStringpublic java.lang.String getNumericValueAsString()
getNumericValueAsString in class SnmpStringjava.lang.UnsupportedOperationException - Since this
is not a numeric data type.
int encode(byte[] buff,
int space)
throws java.lang.ArrayIndexOutOfBoundsException
encode in class SnmpStringbuff - The buffer into which the value is to be encodedspace - The number of free bytes in the buffer
java.lang.ArrayIndexOutOfBoundsException - When there is
insufficient space in buffer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||