HOME

com.ireasoning.protocol.snmp
Class SnmpOpaque

java.lang.Object
  |
  +--com.ireasoning.protocol.snmp.SnmpOctetString
        |
        +--com.ireasoning.protocol.snmp.SnmpOpaque
All Implemented Interfaces:
Msg, Serializable, SnmpDataType

public class SnmpOpaque
extends SnmpOctetString

This class represents Snmp Opaque data type.

See Also:
Serialized Form

Fields inherited from interface com.ireasoning.protocol.snmp.SnmpDataType
BITS, BITSTRING, COUNTER32, COUNTER64, END_OF_MIB_VIEW, END_OF_MIB_VIEW_OBJECT, GAUGE32, INTEGER, IPADDRESS, NO_SUCH_INSTANCE, NO_SUCH_INSTANCE_OBJECT, NO_SUCH_OBJECT, NO_SUCH_OBJECT_OBJECT, NULL, OCTETSTRING, OID, OPAQUE, PDU, SEQUENCE, SEQUENCEOF, TIMETICKS, UNSIGNED32, VARBIND
 
Fields inherited from interface com.ireasoning.protocol.Msg
ERROR_TYPE
 
Constructor Summary
SnmpOpaque()
          Default constructor
SnmpOpaque(byte[] data)
          Constructs an opaque object with the passed data.
SnmpOpaque(SnmpOpaque o)
          Makes a copy of passed in SnmpOpaque object
 
Method Summary
 SnmpDataType copy()
          Makes a copy of itself
 int encode(com.ireasoning.protocol.snmp.SnmpEncoder encoder)
          For internal use
 int getType()
          Returns SnmpDataType.OPAQUE
 String getTypeString()
          Returns "Opaque"
 String toString()
          Returns a String representation of this object.
 
Methods inherited from class com.ireasoning.protocol.snmp.SnmpOctetString
convertPhysAddress, equals, getBytes, getLength, getValue, hashCode, setValue, toHexString, toString2
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SnmpOpaque

public SnmpOpaque()
Default constructor

SnmpOpaque

public SnmpOpaque(byte[] data)
Constructs an opaque object with the passed data.

SnmpOpaque

public SnmpOpaque(SnmpOpaque o)
Makes a copy of passed in SnmpOpaque object
Method Detail

getType

public int getType()
Returns SnmpDataType.OPAQUE
Overrides:
getType in class SnmpOctetString
Following copied from interface: com.ireasoning.protocol.snmp.SnmpDataType
Returns:
the object data type

getTypeString

public String getTypeString()
Returns "Opaque"
Overrides:
getTypeString in class SnmpOctetString

toString

public String toString()
Description copied from class: SnmpOctetString
Returns a String representation of this object. If this object contains a non-displayable character, it will be automatically switch to hex format, that is, result is the same as toHexString() method.
Overrides:
toString in class SnmpOctetString

copy

public SnmpDataType copy()
Description copied from interface: SnmpDataType
Makes a copy of itself
Overrides:
copy in class SnmpOctetString
Following copied from interface: com.ireasoning.protocol.snmp.SnmpDataType
Returns:
a deep copy of this object

encode

public int encode(com.ireasoning.protocol.snmp.SnmpEncoder encoder)
           throws SnmpEncodingException
Description copied from interface: SnmpDataType
For internal use
Overrides:
encode in class SnmpOctetString

HOME

Copyright © 2002 iReasoning Inc. All Rights Reserved.