|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.diameter.packet.AvpValueUtil
com.ibm.diameter.packet.AvpValueUtilUnsigned32
public class AvpValueUtilUnsigned32
Class used to hold the values of AVPs of type Unsigned32. Note that the Integer value is held as a signed value. Care must be taken when doing any arithmetic with this value. You must convert it to an unsigned value before making the operation.
Constructor Summary | |
---|---|
AvpValueUtilUnsigned32()
Creates an instance of AvpValueUtilUnsigned32. |
|
AvpValueUtilUnsigned32(int value)
Creates an instance of AvpValueUtilUnsigned32 receiving an int to initialize the internal value. |
Method Summary | |
---|---|
java.lang.Integer |
getAvpValue()
Gets the Integer object value held by this AvpValueUtilUnsigned32 object. |
java.lang.Object |
getValue()
Returns the AVP data. |
void |
getValueFromByteArray(byte[] in,
int offset,
int valueLength)
Populates the AVP data field by reading the appropriate number of bytes from the supplied byte[] |
void |
getValueFromByteBuffer(com.ibm.wsspi.buffermgmt.WsByteBuffer in,
int valueLength)
Populates the AVP data field by reading the appropriate number of bytes from the WsByteBuffer |
void |
getValueFromByteBufferStream(com.ibm.diameter.util.DiamWsByteBufferInputStream in,
int valueLength)
Populates the AVP data field by reading the appropriate number of bytes from the supplied DiamWsByteBufferInputStream |
void |
getValueFromStream(java.io.DataInputStream in,
int valueLength)
Populates the AVP data field by reading the appropriate number of bytes from the DataInputStream |
int |
getValueLength()
Returns the length of the AVP data field in octets. |
void |
setAvpValue(java.lang.Integer value)
Sets the internal Integer of this object. |
void |
writeValueToByteBufferStream(com.ibm.diameter.util.DiamWsByteBufferOutputStream out)
Writes the AVP data field to the DiamWsByteBufferInputStream |
void |
writeValueToStream(java.io.DataOutputStream out)
Writes the AVP data field to the DataOutputStream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AvpValueUtilUnsigned32()
public AvpValueUtilUnsigned32(int value)
value
- int holding the value to be used in this AvpValueUtilUnsigned32.Method Detail |
---|
public void getValueFromByteBuffer(com.ibm.wsspi.buffermgmt.WsByteBuffer in, int valueLength) throws com.ibm.diameter.packet.exception.DataOutOfSyncException, java.io.IOException, java.io.EOFException
AvpValueUtil
WsByteBuffer
getValueFromByteBuffer
in class AvpValueUtil
in
- The WsByteBuffer
that contains the AVP data.valueLength
- The number of bytes to read from the WsByteBuffer
com.ibm.diameter.packet.exception.DataOutOfSyncException
java.io.IOException
java.io.EOFException
public void getValueFromByteArray(byte[] in, int offset, int valueLength) throws com.ibm.diameter.packet.exception.DataOutOfSyncException, java.io.IOException, java.io.EOFException
AvpValueUtil
getValueFromByteArray
in class AvpValueUtil
in
- The byte[] that contains the AVP data.offset
- The position in the byte[] to be begin reading atvalueLength
- The number of bytes to read from the byte[]
com.ibm.diameter.packet.exception.DataOutOfSyncException
java.io.IOException
java.io.EOFException
public void getValueFromByteBufferStream(com.ibm.diameter.util.DiamWsByteBufferInputStream in, int valueLength) throws com.ibm.diameter.packet.exception.DataOutOfSyncException, java.io.IOException, java.io.EOFException
AvpValueUtil
DiamWsByteBufferInputStream
getValueFromByteBufferStream
in class AvpValueUtil
in
- The DiamWsByteBufferInputStream
that contains the AVP data.valueLength
- The number of bytes to read from the DiamWsByteBufferInputStream
com.ibm.diameter.packet.exception.DataOutOfSyncException
java.io.IOException
java.io.EOFException
public void writeValueToByteBufferStream(com.ibm.diameter.util.DiamWsByteBufferOutputStream out) throws java.io.IOException
AvpValueUtil
DiamWsByteBufferInputStream
writeValueToByteBufferStream
in class AvpValueUtil
out
- The DiamWsByteBufferInputStream
to write to
java.io.IOException
public void getValueFromStream(java.io.DataInputStream in, int valueLength) throws com.ibm.diameter.packet.exception.DataOutOfSyncException, java.io.IOException, java.io.EOFException
AvpValueUtil
DataInputStream
getValueFromStream
in class AvpValueUtil
in
- The DataInputStream
that contains the AVP data.valueLength
- The number of bytes to read from the DataInputStream
com.ibm.diameter.packet.exception.DataOutOfSyncException
java.io.IOException
java.io.EOFException
public void writeValueToStream(java.io.DataOutputStream out) throws java.io.IOException
AvpValueUtil
DataOutputStream
writeValueToStream
in class AvpValueUtil
out
- The DataOutputStream
to write to
java.io.IOException
public int getValueLength()
AvpValueUtil
getValueLength
in class AvpValueUtil
public java.lang.Object getValue()
AvpValueUtil
getValue
in class AvpValueUtil
public java.lang.Integer getAvpValue()
public void setAvpValue(java.lang.Integer value)
value
- Integer to be used as the value of this object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |