Package org.opennms.protocols.snmp
Class SnmpOpaque
- java.lang.Object
-
- org.opennms.protocols.snmp.SnmpOctetString
-
- org.opennms.protocols.snmp.SnmpOpaque
-
- All Implemented Interfaces:
Serializable,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 byteASNTYPEThe 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 Objectclone()Returns a duplicate of the current object.SnmpSyntaxduplicate()Returns a duplicate of the current object.StringtoString()Returns a string representation of the object.bytetypeId()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:
typeIdin interfaceSnmpSyntax- Overrides:
typeIdin classSnmpOctetString- Returns:
- The ASN.1 identifier.
-
duplicate
public SnmpSyntax duplicate()
Returns a duplicate of the current object.- Specified by:
duplicatein interfaceSnmpSyntax- Overrides:
duplicatein classSnmpOctetString- Returns:
- A duplicate of self
-
clone
public Object clone()
Returns a duplicate of the current object.- Overrides:
clonein classSnmpOctetString- Returns:
- A duplicate of self
-
toString
public String toString()
Returns a string representation of the object.- Overrides:
toStringin classSnmpOctetString
-
-