|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.media.ArrayIOUtils
public class ArrayIOUtils
Implements functionality aiding the reading and writing of byte arrays and primitive types such as short.
| Constructor Summary | |
|---|---|
ArrayIOUtils()
|
|
| Method Summary | |
|---|---|
static int |
readInt16(byte[] input,
int inputOffset)
Reads a short integer from a specific series of bytes starting the reading at a specific offset in it. |
static short |
readShort(byte[] input,
int inputOffset)
Reads a short integer from a specific series of bytes starting the reading at a specific offset in it. |
static void |
writeInt16(int input,
byte[] output,
int outputOffset)
Converts a short integer to a series of bytes and writes the result into a specific output array of bytes starting the writing at a specific offset in it. |
static void |
writeShort(short input,
byte[] output,
int outputOffset)
Converts a short integer to a series of bytes and writes the result into a specific output array of bytes starting the writing at a specific offset in it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ArrayIOUtils()
| Method Detail |
|---|
public static int readInt16(byte[] input,
int inputOffset)
readShort(byte[], int) is that the read short integer is an
int which has been formed by reading two bytes, not a
short.
input - the series of bytes to read the short integer frominputOffset - the offset in input at which the reading of
the short integer is to start
public static short readShort(byte[] input,
int inputOffset)
input - the series of bytes to read the short integer frominputOffset - the offset in input at which the reading of
the short integer is to start
public static void writeInt16(int input,
byte[] output,
int outputOffset)
writeShort(short, byte[], int)
is that the input is an int and just two bytes of it are
written.
input - the short integer to be written out as a series of bytes
specified as an integer i.e. the value to be converted is contained in
only two of the four bytes made available by the integeroutput - the output to receive the conversion of the specified short
integer to a series of bytesoutputOffset - the offset in output at which the writing of
the result of the conversion is to be started
public static void writeShort(short input,
byte[] output,
int outputOffset)
input - the short integer to be written out as a series of bytes
specified as shortoutput - the output to receive the conversion of the specified short
integer to a series of bytesoutputOffset - the offset in output at which the writing of
the result of the conversion is to be started
|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||