Package org.opennms.protocols.snmp
Class SnmpOpaque
- java.lang.Object
-
- org.opennms.protocols.snmp.SnmpOctetString
-
- org.opennms.protocols.snmp.SnmpOpaque
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,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.- Author:
- Brian Weaver
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static byte
ASNTYPE
The ASN.1 type for this class.
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
Returns a duplicate of the current object.SnmpSyntax
duplicate()
Returns a duplicate of the current object.java.lang.String
toString()
Returns a string representation of the object.byte
typeId()
Returns the defined ASN.1 type identifier.-
Methods inherited from class org.opennms.protocols.snmp.SnmpOctetString
assumeString, decodeASN, encodeASN, equals, getLength, getString, hashCode, setString, setString, toDisplayString, toHexString
-
-
-
-
Field Detail
-
ASNTYPE
public static final byte ASNTYPE
The ASN.1 type for this class.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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.
-
-
Method Detail
-
typeId
public byte typeId()
Returns the defined ASN.1 type identifier.- Specified by:
typeId
in interfaceSnmpSyntax
- Overrides:
typeId
in classSnmpOctetString
- Returns:
- The ASN.1 identifier.
-
duplicate
public SnmpSyntax duplicate()
Returns a duplicate of the current object.- Specified by:
duplicate
in interfaceSnmpSyntax
- Overrides:
duplicate
in classSnmpOctetString
- Returns:
- A duplicate of self
-
clone
public java.lang.Object clone()
Returns a duplicate of the current object.- Overrides:
clone
in classSnmpOctetString
- Returns:
- A duplicate of self
-
toString
public java.lang.String toString()
Returns a string representation of the object.- Overrides:
toString
in classSnmpOctetString
-
-