java.lang.Object | ||
↳ | com.sun.jmx.snmp.SnmpValue | |
↳ | com.sun.jmx.snmp.SnmpString |
![]() |
Represents an SNMP string.
This API is a Sun Microsystems internal API and is subject to change without notice.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
value | This is the bytes array of the string value. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new empty
SnmpString . | |||||||||||
Constructs a new
SnmpString from the specified bytes array. | |||||||||||
Constructs a new
SnmpString from the specified Bytes array. | |||||||||||
Constructs a new
SnmpString from the specified String value. | |||||||||||
Constructs a new
SnmpString from the specified InetAddress . |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Converts the specified binary string into a character string.
| |||||||||||
Converts the specified hexadecimal string into a character string.
| |||||||||||
Appends an
SnmpOid representing an SnmpString to another OID. | |||||||||||
Returns the bytes array of this
SnmpString . | |||||||||||
Clones the
SnmpString object, making a copy of its data. | |||||||||||
Performs a clone action.
| |||||||||||
Returns a textual description of the type object.
| |||||||||||
Converts the string value to its
InetAddress form. | |||||||||||
Scans an index OID, skips the string value and returns the position
of the next value.
| |||||||||||
Converts the string value to its array of
Bytes form. | |||||||||||
Converts the string value to its
SnmpOid form. | |||||||||||
Extracts the string from an index OID and returns its
value converted as an
SnmpOid . | |||||||||||
Converts the string value to its
String form. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
This is the bytes array of the string value.
Constructs a new empty SnmpString
.
Constructs a new SnmpString
from the specified bytes array.
v | The bytes composing the string value. |
---|
Constructs a new SnmpString
from the specified Bytes
array.
v | The Bytes composing the string value.
|
---|
Constructs a new SnmpString
from the specified String
value.
v | The initialization value. |
---|
Constructs a new SnmpString
from the specified InetAddress
.
address | The InetAddress . |
---|
Converts the specified binary string into a character string.
bin | The binary string value to convert. |
---|
Converts the specified hexadecimal string into a character string.
hex | The hexadecimal string value to convert. |
---|
Appends an SnmpOid
representing an SnmpString
to another OID.
source | An OID representing an SnmpString value. |
---|---|
dest | Where source should be appended. |
Returns the bytes array of this SnmpString
.
Clones the SnmpString
object, making a copy of its data.
Performs a clone action. This provides a workaround for the
SnmpValue
interface.
Returns a textual description of the type object.
Converts the string value to its InetAddress
form.
InetAddress
defined by the string value.UnknownHostException | If string value is not a legal address format. |
---|
Scans an index OID, skips the string value and returns the position of the next value.
index | The index array. |
---|---|
start | The position in the index array. |
SnmpStatusException | There is no string value available at the start position. |
---|
Converts the string value to its array of Bytes
form.
Bytes
representation of the value.
Converts the string value to its SnmpOid
form.
Extracts the string from an index OID and returns its
value converted as an SnmpOid
.
index | The index array. |
---|---|
start | The position in the index array. |
SnmpStatusException | There is no string value available at the start position. |
---|
Converts the string value to its String
form.
String
representation of the value.