|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.diameter.packet.AvpValueUtil
public class AvpValueUtil
Class that defines the methods used to read and write AVP values and also
to retrieve the value and the length of
the value from the Avp
object.
This class is primarily used as an interface for extensions with specific data types.
Constructor Summary | |
---|---|
AvpValueUtil()
|
Method Summary | |
---|---|
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 |
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 AvpValueUtil()
Method Detail |
---|
public java.lang.Object getValue()
public int getValueLength()
public void getValueFromByteArray(byte[] in, int offset, int valueLength) throws com.ibm.diameter.packet.exception.DataOutOfSyncException, java.io.IOException, java.io.EOFException
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 getValueFromByteBuffer(com.ibm.wsspi.buffermgmt.WsByteBuffer in, int valueLength) throws com.ibm.diameter.packet.exception.DataOutOfSyncException, java.io.IOException, java.io.EOFException
WsByteBuffer
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 getValueFromByteBufferStream(com.ibm.diameter.util.DiamWsByteBufferInputStream in, int valueLength) throws com.ibm.diameter.packet.exception.DataOutOfSyncException, java.io.IOException, java.io.EOFException
DiamWsByteBufferInputStream
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
DiamWsByteBufferInputStream
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
DataInputStream
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
DataOutputStream
out
- The DataOutputStream
to write to
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |