|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.ObjectGiciStream.IODataStream
public class IODataStream
This class supports the writting and reading of values from/to a BitStream using different data types(boolean, byte, short, integer, integer specifying the number of bits to write, long, float, double). This class is not instantiable, all the functions are declared static.
| Constructor Summary | |
|---|---|
IODataStream()
|
|
| Method Summary | |
|---|---|
static int |
readBitsSignedInteger(BitStream IODataBitStream,
int numBits)
Reads an signed integer from a BitStream and returns its value. |
static int |
readBitsUnsignedInteger(BitStream IODataBitStream,
int numBits)
Reads a number of bits of an integer from a BitStream and returns its value. |
static boolean |
readBoolean(BitStream IODataBitStream)
Reads a boolean from a BitStream and returns its value. |
static byte |
readByte(BitStream IODataBitStream)
Reads a byte from a BitStream and returns its value. |
static double |
readDouble(BitStream IODataBitStream)
Reads a double from a BitStream and returns its value. |
static float |
readFloat(BitStream IODataBitStream)
Reads a float from a BitStream and returns its value. |
static int |
readInteger(BitStream IODataBitStream)
Reads an integer from a BitStream and returns its value. |
static long |
readLong(BitStream IODataBitStream)
Reads a long from a BitStream and returns its value. |
static short |
readShort(BitStream IODataBitStream)
Reads a short from a BitStream and returns its value. |
static void |
writeBitsSignedInteger(BitStream IODataBitStream,
int value,
int numBits)
Write the bits of an signed int including the sign bit, to the bitstream starting at length MSB position of the int passed. |
static void |
writeBitsUnsignedInteger(BitStream IODataBitStream,
int value,
int numBits)
Write a number of bits of an unsigned int to a bitstream. |
static void |
writeBoolean(BitStream IODataBitStream,
boolean value)
Write a boolean to a BitStream. |
static void |
writeByte(BitStream IODataBitStream,
byte value)
Write a byte to a BitStream. |
static void |
writeDouble(BitStream IODataBitStream,
double value)
Write a double to a BitStream. |
static void |
writeFloat(BitStream IODataBitStream,
float value)
Write a float to a BitStream. |
static void |
writeInteger(BitStream IODataBitStream,
int value)
Write an integer to a BitStream. |
static void |
writeLong(BitStream IODataBitStream,
long value)
Write a long to a BitStream. |
static void |
writeShort(BitStream IODataBitStream,
short value)
Write a short to a BitStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IODataStream()
| Method Detail |
|---|
public static void writeBoolean(BitStream IODataBitStream,
boolean value)
value - its the boolean to insertIODataBitStream - its the BitStream to insert data readed
public static boolean readBoolean(BitStream IODataBitStream)
throws WarningException
IODataBitStream - its the BitStream to read the data
WarningException - when the input BitStream end is reached
public static void writeByte(BitStream IODataBitStream,
byte value)
IODataBitStream - its the BitStream to write the datavalue - its the byte to insert
public static byte readByte(BitStream IODataBitStream)
throws WarningException
IODataBitStream - it is the BitStream to read the data
WarningException - when the input BitStream end is reached
public static void writeShort(BitStream IODataBitStream,
short value)
IODataBitStream - its the BitStream to write the datavalue - it is the short to insert
public static short readShort(BitStream IODataBitStream)
throws WarningException
IODataBitStream - its the BitStream to read the data
WarningException - when the input BitStream end is reached
public static void writeInteger(BitStream IODataBitStream,
int value)
IODataBitStream - its the BitStream to write the datavalue - its the integer to insert
public static int readInteger(BitStream IODataBitStream)
throws WarningException
IODataBitStream - its the BitStream to read the data
WarningException - when the input BitStream end is reached
public static void writeLong(BitStream IODataBitStream,
long value)
IODataBitStream - its the BitStream to write the datavalue - its the long to insert
public static long readLong(BitStream IODataBitStream)
throws WarningException
IODataBitStream - its the BitStream to read the data
WarningException - when the input BitStream end is reached
public static void writeFloat(BitStream IODataBitStream,
float value)
IODataBitStream - its the BitStream to write the datavalue - its the float to insert
public static float readFloat(BitStream IODataBitStream)
throws WarningException
IODataBitStream - its the BitStream to read the data
WarningException - when the input BitStream end is reached
public static void writeDouble(BitStream IODataBitStream,
double value)
IODataBitStream - its the BitStream to write the datavalue - its the double to insert
public static double readDouble(BitStream IODataBitStream)
throws WarningException
IODataBitStream - its the BitStream to read the data
WarningException - when the input BitStream end is reached
public static void writeBitsUnsignedInteger(BitStream IODataBitStream,
int value,
int numBits)
throws WarningException
IODataBitStream - its the BitStream to write the datavalue - a integer that contains the sequence of values to be insertednumBits - a integer that indicates the number of bits to take into account
WarningException - when the value cannot be saved with the passed number of bits or is negative
public static int readBitsUnsignedInteger(BitStream IODataBitStream,
int numBits)
throws WarningException
IODataBitStream - its the BitStream to read the datanumBits - the number of bits of the integer
WarningException - when the input BitStream end is reached
public static void writeBitsSignedInteger(BitStream IODataBitStream,
int value,
int numBits)
throws WarningException
IODataBitStream - its the BitStream to write the datavalue - a integer that contains the sequence of values to be insertednumBits - a integer that indicates the number of bits to take into account the sign is included
WarningException - when the value cannot be saved with the passed number of bits
public static int readBitsSignedInteger(BitStream IODataBitStream,
int numBits)
throws WarningException
IODataBitStream - its the BitStream to read the datanumBits - the number of bits of the integer includign the sign bit
WarningException - when the input BitStream end is reached
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||