Class Overview
Is used to represent an SNMP value.
The Opaque
type is defined in RFC 1155.
This API is a Sun Microsystems internal API and is subject
to change without notice.
Summary
[Expand]
Inherited Constants |
From interface
com.sun.jmx.snmp.SnmpDataTypeEnums
int |
ApplFlag |
|
int |
BitStringTag |
|
int |
BooleanTag |
|
int |
Counter64Tag |
|
int |
CounterTag |
|
int |
CtxtFlag |
|
int |
GaugeTag |
|
int |
IntegerTag |
|
int |
IpAddressTag |
|
int |
NsapTag |
|
int |
NullTag |
|
int |
ObjectIdentiferTag |
|
int |
OctetStringTag |
|
int |
OpaqueTag |
|
int |
SequenceTag |
|
int |
TableTag |
|
int |
TimeticksTag |
|
int |
UintegerTag |
|
int |
UnknownSyntaxTag |
|
int |
errEndOfMibViewTag |
|
int |
errNoSuchInstanceTag |
|
int |
errNoSuchObjectTag |
|
|
Public Constructors |
|
SnmpOpaque(byte[] v)
Constructs a new SnmpOpaque from the specified bytes array.
|
|
SnmpOpaque(Byte[] v)
Constructs a new SnmpOpaque with the specified Bytes array.
|
|
SnmpOpaque(String v)
Constructs a new SnmpOpaque from the specified String value.
|
Public Methods |
final
String
|
getTypeName()
Returns a textual description of the type object.
|
String
|
toString()
Converts the opaque to its String form, that is, a string of
bytes expressed in hexadecimal form.
|
[Expand]
Inherited Methods |
From class
com.sun.jmx.snmp.SnmpString
static
String
|
BinToChar(String bin)
Converts the specified binary string into a character string.
|
static
String
|
HexToChar(String hex)
Converts the specified hexadecimal string into a character string.
|
static
void
|
appendToOid(SnmpOid source, SnmpOid dest)
Appends an SnmpOid representing an SnmpString to another OID.
|
byte[]
|
byteValue()
Returns the bytes array of this SnmpString .
|
synchronized
Object
|
clone()
Clones the SnmpString object, making a copy of its data.
|
synchronized
final
SnmpValue
|
duplicate()
Performs a clone action.
|
String
|
getTypeName()
Returns a textual description of the type object.
|
InetAddress
|
inetAddressValue()
Converts the string value to its InetAddress form.
|
static
int
|
nextOid(long[] index, int start)
Scans an index OID, skips the string value and returns the position
of the next value.
|
Byte[]
|
toByte()
Converts the string value to its array of Bytes form.
|
SnmpOid
|
toOid()
Converts the string value to its SnmpOid form.
|
static
SnmpOid
|
toOid(long[] index, int start)
Extracts the string from an index OID and returns its
value converted as an SnmpOid .
|
String
|
toString()
Converts the string value to its String form.
|
|
From class
com.sun.jmx.snmp.SnmpValue
|
From class
java.lang.Object
Object
|
clone()
Creates and returns a copy of this object.
|
boolean
|
equals(Object obj)
Indicates whether some other object is "equal to" this one.
|
void
|
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
final
Class<?>
|
getClass()
Returns the runtime class of this Object .
|
int
|
hashCode()
Returns a hash code value for the object.
|
final
void
|
notify()
Wakes up a single thread that is waiting on this object's
monitor.
|
final
void
|
notifyAll()
Wakes up all threads that are waiting on this object's monitor.
|
String
|
toString()
Returns a string representation of the object.
|
final
void
|
wait()
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object.
|
final
void
|
wait(long timeout, int nanos)
Causes the current thread to wait until another thread invokes the
notify() method or the
notifyAll() method for this object, or
some other thread interrupts the current thread, or a certain
amount of real time has elapsed.
|
final
void
|
wait(long timeout)
Causes the current thread to wait until either another thread invokes the
notify() method or the
notifyAll() method for this object, or a
specified amount of time has elapsed.
|
|
Public Constructors
public
SnmpOpaque
(byte[] v)
Constructs a new SnmpOpaque
from the specified bytes array.
Parameters
v
| The bytes composing the opaque value.
|
public
SnmpOpaque
(Byte[] v)
Constructs a new SnmpOpaque
with the specified Bytes
array.
Parameters
v
| The Bytes composing the opaque value.
|
public
SnmpOpaque
(String v)
Constructs a new SnmpOpaque
from the specified String
value.
Parameters
v
| The initialization value.
|
Public Methods
public
final
String
getTypeName
()
Returns a textual description of the type object.
Returns
- ASN.1 textual description.
public
String
toString
()
Converts the opaque to its String
form, that is, a string of
bytes expressed in hexadecimal form.
Returns
- The
String
representation of the value.