org.opennms.protocols.snmp
Class SnmpOpaque
java.lang.Object
|
+--org.opennms.protocols.snmp.SnmpOctetString
|
+--org.opennms.protocols.snmp.SnmpOpaque
- All Implemented Interfaces:
- Cloneable, Serializable, SnmpSyntax
- public class SnmpOpaque
- extends SnmpOctetString
The SnmpOpaque class is an extension of the octet string
class and is used to pass opaque data. Opaque data is
information that isn't interperted by the manager in
general.
- Version:
- $Revision: 1.8 $
- Author:
- Brian Weaver
- See Also:
- Serialized Form
Field Summary |
static byte |
ASNTYPE
The ASN.1 type for this class. |
(package private) static long |
serialVersionUID
Required for version control of serialzation format. |
Constructor Summary |
SnmpOpaque()
The default constructor for this class. |
SnmpOpaque(byte[] data)
Constructs an opaque object with the passed data. |
SnmpOpaque(SnmpOctetString second)
Constructs an object that is a duplicate of the passed object. |
SnmpOpaque(SnmpOpaque second)
Constructs an object that is a duplicate of the passed object. |
Method Summary |
Object |
clone()
Returns a duplicate of the current object. |
SnmpSyntax |
duplicate()
Returns a duplicate of the current object. |
String |
toString()
Returns a string representation of the object. |
byte |
typeId()
Returns the defined ASN.1 type identifier. |
Methods inherited from class java.lang.Object |
, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
serialVersionUID
static final long serialVersionUID
- Required for version control of serialzation format.
ASNTYPE
public static final byte ASNTYPE
- The ASN.1 type for this class.
SnmpOpaque
public SnmpOpaque()
- The default constructor for this class.
SnmpOpaque
public SnmpOpaque(byte[] data)
- Constructs an opaque object with the passed data.
- Parameters:
data
- The opaque data.
SnmpOpaque
public SnmpOpaque(SnmpOpaque second)
- Constructs an object that is a duplicate of the passed object.
- Parameters:
second
- The object to be duplicated.
SnmpOpaque
public SnmpOpaque(SnmpOctetString second)
- Constructs an object that is a duplicate of the passed object.
- Parameters:
second
- The object to be duplicated.
typeId
public byte typeId()
- Returns the defined ASN.1 type identifier.
- Overrides:
typeId
in class SnmpOctetString
- Returns:
- The ASN.1 identifier.
duplicate
public SnmpSyntax duplicate()
- Returns a duplicate of the current object.
- Overrides:
duplicate
in class SnmpOctetString
- Returns:
- A duplicate of self
clone
public Object clone()
- Returns a duplicate of the current object.
- Overrides:
clone
in class SnmpOctetString
- Returns:
- A duplicate of self
toString
public String toString()
- Returns a string representation of the object.
- Overrides:
toString
in class SnmpOctetString