wttools.protocols.snmp
Class SnmpOctet

java.lang.Object
  |
  +--wttools.protocols.snmp.SnmpValue
        |
        +--wttools.protocols.snmp.SnmpOctet
All Implemented Interfaces:
SnmpDataTypeEnumeration

public final class SnmpOctet
extends SnmpValue

SnmpOctet.java Created: Saturday Dec 08 2001

Version:
$Revision: 1.1 $
Author:
Kantharaj B R

Fields inherited from interface wttools.protocols.snmp.SnmpDataTypeEnumeration
ASN_APPLICATION, ASN_BIT_STRING, ASN_BIT8, ASN_BOOLEAN, ASN_CONSTRUCTOR, ASN_CONTEXT, ASN_EXTENSION_ID, ASN_INTEGER, ASN_LONG_LENGTH, ASN_NULL, ASN_OBJECT_ID, ASN_OCTECT_STRING, ASN_PRIMITIVE, ASN_PRIVATE, ASN_SEQUENCE, ASN_SET, ASN_UNIVERSAL, snmpDataTypeBitString, snmpDataTypeInteger, snmpDataTypeInteger32, snmpDataTypeNullObject, snmpDataTypeObjectId, snmpDataTypeOctet, snmpDataTypeUnknown, snmpString_BitString, snmpString_Integer, snmpString_Integer32, snmpString_NullObject, snmpString_ObjectId, snmpString_Octet
 
Constructor Summary
SnmpOctet()
          SnmpOctet constructor with no parameters
SnmpOctet(byte[] argument)
          SnmpOctet constructor with array of Bytes as the parameter
SnmpOctet(SnmpOctet argument)
          SnmpOctet copy constructor SnmpOctet as the parameter
SnmpOctet(java.lang.String argument)
          SnmpOctet constructor with String as the parameter
 
Method Summary
 void decode(DecodeFromBuffer buffer)
          decode decodes the SnmpOctet according to BER encoding from a buffer
 void encode(EncodeInBuffer buffer)
          encode encodes the SnmpOctet according to BER encoding and stores in a buffer
 int getLength()
          getLength returns length of Octet
 byte[] getOctetValue()
          getOctetValue returns Octet(array of Bytes)
 int getType()
          getType function returns the SnmpOctet data type
 java.lang.String getTypeName()
          getTypeName function returns the SnmpOctet data type in String.
 java.lang.String toString()
          toString converts the SnmpOctet to String for displaying
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SnmpOctet

public SnmpOctet()
SnmpOctet constructor with no parameters

SnmpOctet

public SnmpOctet(java.lang.String argument)
SnmpOctet constructor with String as the parameter
Parameters:
value - an String value.

SnmpOctet

public SnmpOctet(SnmpOctet argument)
SnmpOctet copy constructor SnmpOctet as the parameter
Parameters:
value - an SnmpOctet value.

SnmpOctet

public SnmpOctet(byte[] argument)
SnmpOctet constructor with array of Bytes as the parameter
Parameters:
value - an byte[] value.
Method Detail

getType

public final int getType()
getType function returns the SnmpOctet data type
Overrides:
getType in class SnmpValue
Returns:
an int value

getTypeName

public final java.lang.String getTypeName()
getTypeName function returns the SnmpOctet data type in String.
Overrides:
getTypeName in class SnmpValue
Returns:
an String value

encode

public void encode(EncodeInBuffer buffer)
encode encodes the SnmpOctet according to BER encoding and stores in a buffer
Overrides:
encode in class SnmpValue
Parameters:
value - an EncodeInBuffer value.

decode

public void decode(DecodeFromBuffer buffer)
decode decodes the SnmpOctet according to BER encoding from a buffer
Overrides:
decode in class SnmpValue
Parameters:
value - an DecodeFromBuffer value.

getLength

public final int getLength()
getLength returns length of Octet
Overrides:
getLength in class SnmpValue
Returns:
value an int value.

getOctetValue

public final byte[] getOctetValue()
getOctetValue returns Octet(array of Bytes)
Returns:
value an byte[] value.

toString

public final java.lang.String toString()
toString converts the SnmpOctet to String for displaying
Overrides:
toString in class java.lang.Object
Returns:
value an String value.


Copyright © GNU, wttools developers Team.