|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjavax.management.snmp.SnmpValue
javax.management.snmp.SnmpString
com.sun.management.snmp in
preference to classes in this package. This class may be removed
in a future version of Java DMK.
Represents an SNMP string.
| Field Summary | |
protected byte[] |
value
Deprecated. This is the bytes array of the string value. |
| Fields inherited from interface javax.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 | |
SnmpString()
Deprecated. Constructs a new empty SnmpString. |
|
SnmpString(byte[] v)
Deprecated. Constructs a new SnmpString from the specified bytes array. |
|
SnmpString(Byte[] v)
Deprecated. Constructs a new SnmpString from the specified Bytes array. |
|
SnmpString(InetAddress address)
Deprecated. Constructs a new SnmpString from the specified InetAddress . |
|
SnmpString(String v)
Deprecated. Constructs a new SnmpString from the specified String value. |
|
| Method Summary | |
static void |
appendToOid(SnmpOid source,
SnmpOid dest)
Deprecated. Appends an SnmpOid representing an SnmpString to another OID. |
static String |
BinToChar(String bin)
Deprecated. Converts the specified binary string into a character string. |
byte[] |
byteValue()
Deprecated. Returns the bytes array of this SnmpString. |
Object |
clone()
Deprecated. Clones the SnmpString object, making a copy of its data. |
SnmpValue |
duplicate()
Deprecated. Performs a clone action. |
String |
getTypeName()
Deprecated. Returns a textual description of the type object. |
static String |
HexToChar(String hex)
Deprecated. Converts the specified hexadecimal string into a character string. |
InetAddress |
inetAddressValue()
Deprecated. Converts the string value to its InetAddress form. |
static int |
nextOid(long[] index,
int start)
Deprecated. Scans an index OID, skips the string value and returns the position of the next value. |
Byte[] |
toByte()
Deprecated. Converts the string value to its array of Bytes form. |
SnmpOid |
toOid()
Deprecated. Converts the string value to its SnmpOid form. |
static SnmpOid |
toOid(long[] index,
int start)
Deprecated. Extracts the string from an index OID and returns its value converted as an SnmpOid. |
String |
toString()
Deprecated. Converts the string value to its String form. |
| Methods inherited from class javax.management.snmp.SnmpValue |
isEndOfMibViewValue, isNoSuchInstanceValue, isNoSuchObjectValue, toAsn1String |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected byte[] value
| Constructor Detail |
public SnmpString()
SnmpString.
public SnmpString(byte[] v)
SnmpString from the specified bytes array.
v - The bytes composing the string value.public SnmpString(Byte[] v)
SnmpString from the specified Bytes array.
v - The Bytes composing the string value.public SnmpString(String v)
SnmpString from the specified String value.
v - The initialization value.public SnmpString(InetAddress address)
SnmpString from the specified InetAddress .
address - The InetAddress .| Method Detail |
public InetAddress inetAddressValue()
throws UnknownHostException
InetAddress form.
InetAddress defined by the string value.
UnknownHostException - If string value is not a legal address format.public static String BinToChar(String bin)
bin - The binary string value to convert.
public static String HexToChar(String hex)
hex - The hexadecimal string value to convert.
public byte[] byteValue()
SnmpString.
public Byte[] toByte()
Bytes form.
Bytes representation of the value.public String toString()
String form.
String representation of the value.public SnmpOid toOid()
SnmpOid form.
toOid in class SnmpValue
public static SnmpOid toOid(long[] index,
int start)
throws SnmpStatusException
SnmpOid.
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(long[] index,
int start)
throws SnmpStatusException
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(SnmpOid source,
SnmpOid dest)
SnmpOid representing an SnmpString to another OID.
source - An OID representing an SnmpString value.dest - Where source should be appended.public final SnmpValue duplicate()
SnmpValue interface.
duplicate in class SnmpValuepublic Object clone()
SnmpString object, making a copy of its data.
public String getTypeName()
getTypeName in class SnmpValue
|
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 | ||||||||||