HOME

com.ireasoning.protocol.snmp
Class SnmpOpaque

java.lang.Object
  extended bycom.ireasoning.protocol.snmp.SnmpOctetString
      extended bycom.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

Field Summary
 
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, serialVersionUID, 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
SnmpOpaque(String str)
          Constructs an opaque object with the passed data.
 
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, toPrintableString, toString, 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


SnmpOpaque

public SnmpOpaque(String str)
Constructs an opaque object with the passed data.

Method Detail

getType

public int getType()
Returns SnmpDataType.OPAQUE

Specified by:
getType in interface SnmpDataType
Overrides:
getType in class SnmpOctetString

getTypeString

public String getTypeString()
Returns "Opaque"

Specified by:
getTypeString in interface SnmpDataType
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

Specified by:
copy in interface SnmpDataType
Overrides:
copy in class SnmpOctetString

encode

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

Specified by:
encode in interface SnmpDataType
Overrides:
encode in class SnmpOctetString
Throws:
SnmpEncodingException

HOME

Copyright © 2002 iReasoning Inc. All Rights Reserved.