wttools.protocols.snmp
Class SnmpInteger32
java.lang.Object
|
+--wttools.protocols.snmp.SnmpValue
|
+--wttools.protocols.snmp.SnmpInteger32
- All Implemented Interfaces:
- SnmpDataTypeEnumeration
- public final class SnmpInteger32
- extends SnmpValue
SnmpInteger32.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 |
SnmpInteger32()
SnmpInteger32 constructor with no parameters |
SnmpInteger32(int value)
SnmpInteger32 constructor with one int as the parameter |
SnmpInteger32(long value)
SnmpInteger32 constructor with one Long Int as the parameter |
SnmpInteger32(SnmpInteger32 argument)
SnmpInteger32 copy constructor |
SnmpInteger32(java.lang.String str)
SnmpInteger32 constructor with string as a parameter |
Method Summary |
void |
decode(DecodeFromBuffer buffer)
decode decodes the SnmpInteger32 according to BER encoding
from a buffer |
void |
encode(EncodeInBuffer buffer)
encode encodes the SnmpInteger32 according to BER encoding
and stores in a buffer |
int |
getIntValue()
getIntValue returns the value of the SnmpInteger32 variable |
int |
getLength()
getLength returns the length of SnmpInteger32 variable
in bytes |
int |
getLongValue()
getLongValue returns the value of the SnmpInteger32 variable |
int |
getType()
getType function returns the Integer32 data type |
java.lang.String |
getTypeName()
getTypeName function returns the Integer32 data type in
String. |
void |
setIntValue(int value)
setIntValue function sets the value of the Integer32 variable |
void |
setLongValue(long value)
setLongValue function sets the value of the Integer32
variable |
java.lang.String |
toHexString()
toHexString converts the SnmpInteger32 to HexString for
displaying |
java.lang.String |
toString()
toString converts the SnmpInteger32 to String for displaying |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
dataType
public static final int dataType
SnmpInteger32
public SnmpInteger32()
SnmpInteger32
constructor with no parameters
SnmpInteger32
public SnmpInteger32(long value)
SnmpInteger32
constructor with one Long Int as the parameter
- Parameters:
value
- an long
value.
SnmpInteger32
public SnmpInteger32(int value)
SnmpInteger32
constructor with one int as the parameter
- Parameters:
value
- an int
value.
SnmpInteger32
public SnmpInteger32(SnmpInteger32 argument)
SnmpInteger32
copy constructor
- Parameters:
argument
- an SnmpInteger32
value.
SnmpInteger32
public SnmpInteger32(java.lang.String str)
throws java.lang.NumberFormatException
SnmpInteger32
constructor with string as a parameter
- Parameters:
str
- an String
value.
setIntValue
public final void setIntValue(int value)
setIntValue
function sets the value of the Integer32 variable
- Parameters:
value
- an int
value.
setLongValue
public final void setLongValue(long value)
setLongValue
function sets the value of the Integer32
variable
- Parameters:
value
- an long
value.
getType
public final int getType()
getType
function returns the Integer32 data type
- Overrides:
getType
in class SnmpValue
- Returns:
- an
int
value
getTypeName
public final java.lang.String getTypeName()
getTypeName
function returns the Integer32 data type in
String.
- Overrides:
getTypeName
in class SnmpValue
- Returns:
- an
String
value
getLength
public final int getLength()
getLength
returns the length of SnmpInteger32 variable
in bytes
- Overrides:
getLength
in class SnmpValue
- Returns:
- value an
int
value.
getIntValue
public final int getIntValue()
getIntValue
returns the value of the SnmpInteger32 variable
- Returns:
- value an
int
value.
getLongValue
public final int getLongValue()
getLongValue
returns the value of the SnmpInteger32 variable
- Returns:
- value an
Long
value.
encode
public void encode(EncodeInBuffer buffer)
encode
encodes the SnmpInteger32 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 SnmpInteger32 according to BER encoding
from a buffer
- Overrides:
decode
in class SnmpValue
- Parameters:
value
- an DecodeFromBuffer
value.
toString
public final java.lang.String toString()
toString
converts the SnmpInteger32 to String for displaying
- Overrides:
toString
in class java.lang.Object
- Returns:
- value an
String
value.
toHexString
public final java.lang.String toHexString()
toHexString
converts the SnmpInteger32 to HexString for
displaying
- Returns:
- value an
String
value.
Copyright © GNU, wttools developers Team.