public class

SnmpOpaque

extends SnmpString
java.lang.Object
   ↳ com.sun.jmx.snmp.SnmpValue
     ↳ com.sun.jmx.snmp.SnmpString
       ↳ com.sun.jmx.snmp.SnmpOpaque

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
[Expand]
Inherited Fields
From class com.sun.jmx.snmp.SnmpString
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
From class com.sun.jmx.snmp.SnmpValue
From class java.lang.Object

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.