|
||||||||||
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.AvpValueUtilGrouped
public class AvpValueUtilGrouped
Class used to read and write Grouped AVPs and to retrieve the total length of a grouped AVP.
Constructor Summary | |
---|---|
AvpValueUtilGrouped()
|
|
AvpValueUtilGrouped(java.util.Vector value)
Constructor receiving a Vector of Avp objects that are included in this Grouped AVP. |
Method Summary | |
---|---|
java.util.Vector |
getAvpValue()
Returns the Vector of Avps held by this Avp. |
java.lang.Object |
getValue()
Returns the AVP data. |
void |
getValueFromByteArray(byte[] current,
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 current,
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.util.Vector value)
Sets the Vector of Avps to be held in this Grouped Avp. |
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 AvpValueUtilGrouped()
public AvpValueUtilGrouped(java.util.Vector value)
value
- Vector of Avp objectsMethod Detail |
---|
public void getValueFromByteBuffer(com.ibm.wsspi.buffermgmt.WsByteBuffer current, int valueLength) throws java.io.IOException, java.io.EOFException
AvpValueUtil
WsByteBuffer
getValueFromByteBuffer
in class AvpValueUtil
current
- 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[] current, int offset, int valueLength) throws java.io.IOException, java.io.EOFException
AvpValueUtil
getValueFromByteArray
in class AvpValueUtil
current
- 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 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 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.util.Vector getAvpValue()
public void setAvpValue(java.util.Vector value)
value
- Vector of Avps.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |