|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sun.management.snmp.SnmpValue
com.sun.management.snmp.SnmpString
com.sun.management.snmp.SnmpStringFixed
Represents an SNMP String defined with a fixed length.
The class is mainly used when dealing with table indexes for which one of the keys
is defined as a String.
| Field Summary |
| Fields inherited from class com.sun.management.snmp.SnmpString |
value |
| Fields inherited from interface com.sun.management.snmp.SnmpDataTypeEnums |
ApplFlag, BitStringTag, BooleanTag, Counter64Tag, CounterTag, CtxtFlag, errEndOfMibViewTag, errNoSuchInstanceTag, errNoSuchObjectTag, GaugeTag, IntegerTag, IpAddressTag, NsapTag, NullTag, ObjectIdentiferTag, OctetStringTag, OpaqueTag, SequenceTag, TableTag, TimeticksTag, UintegerTag, UnknownSyntaxTag |
| Constructor Summary | |
SnmpStringFixed(byte[] v)
Constructs a new SnmpStringFixed from the specified bytes array. |
|
SnmpStringFixed(Byte[] v)
Constructs a new SnmpStringFixed with the specified Bytes array. |
|
SnmpStringFixed(int l,
byte[] v)
Constructs a new SnmpStringFixed from the specified bytes array
with the specified length. |
|
SnmpStringFixed(int l,
Byte[] v)
Constructs a new SnmpStringFixed from the specified Bytes array
with the specified length. |
|
SnmpStringFixed(int l,
String s)
Constructs a new SnmpStringFixed from the specified String
with the specified length. |
|
SnmpStringFixed(String v)
Constructs a new SnmpStringFixed from the specified String value. |
|
| Method Summary | |
static void |
appendToOid(int l,
SnmpOid source,
SnmpOid dest)
Appends an SnmpOid representing an SnmpStringFixed to another OID. |
static int |
nextOid(int l,
long[] index,
int start)
Scans an index OID, skip the string value and returns the position of the next value. |
static SnmpOid |
toOid(int l,
long[] index,
int start)
Extracts the fixed-string from an index OID and returns its value converted as an SnmpOid. |
| Methods inherited from class com.sun.management.snmp.SnmpString |
appendToOid, BinToChar, byteValue, clone, duplicate, getTypeName, HexToChar, inetAddressValue, nextOid, toByte, toOid, toOid, toString |
| Methods inherited from class com.sun.management.snmp.SnmpValue |
isEndOfMibViewValue, isNoSuchInstanceValue, isNoSuchObjectValue, toAsn1String |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SnmpStringFixed(byte[] v)
SnmpStringFixed from the specified bytes array.
v - The bytes composing the fixed-string value.public SnmpStringFixed(Byte[] v)
SnmpStringFixed with the specified Bytes array.
v - The Bytes composing the fixed-string value.public SnmpStringFixed(String v)
SnmpStringFixed from the specified String value.
v - The initialization value.
public SnmpStringFixed(int l,
byte[] v)
throws IllegalArgumentException
SnmpStringFixed from the specified bytes array
with the specified length.
l - The length of the fixed-string.v - The bytes composing the fixed-string value.
IllegalArgumentException - Either the length or the byte array is not valid.
public SnmpStringFixed(int l,
Byte[] v)
throws IllegalArgumentException
SnmpStringFixed from the specified Bytes array
with the specified length.
l - The length of the fixed-string.v - The Bytes composing the fixed-string value.
IllegalArgumentException - Either the length or the Byte array is not valid.
public SnmpStringFixed(int l,
String s)
throws IllegalArgumentException
SnmpStringFixed from the specified String
with the specified length.
l - The length of the fixed-string.s - The String composing the fixed-string value.
IllegalArgumentException - Either the length or the String is not valid.| Method Detail |
public static SnmpOid toOid(int l,
long[] index,
int start)
throws SnmpStatusException
SnmpOid.
l - The number of successive array elements to be retrieved
in order to construct the OID.
These elements are retrieved starting at the start position.index - The index array.start - The position in the index array.
SnmpStatusException - There is no string value
available at the start position.
public static int nextOid(int l,
long[] index,
int start)
throws SnmpStatusException
l - The number of successive array elements to be passed
in order to get the position of the next value.
These elements are passed starting at the start position.index - The index array.start - The position in the index array.
SnmpStatusException - There is no string value
available at the start position.
public static void appendToOid(int l,
SnmpOid source,
SnmpOid dest)
SnmpOid representing an SnmpStringFixed to another OID.
l - Unused.source - An OID representing an SnmpStringFixed value.dest - Where source should be appended.
|
FCS Release jdmk-5_1-b34.2 2005.11.29_16:24:00_MET |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||