|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuka.transport.BasicIO
Provides static methods for the conversion of primitive values to and from byte arrays.
| Field Summary |
| Fields inherited from interface uka.transport.TransportConstants |
REQUEST_MAX, REQUEST_MAX_boolean, REQUEST_MAX_byte, REQUEST_MAX_char, REQUEST_MAX_double, REQUEST_MAX_float, REQUEST_MAX_int, REQUEST_MAX_long, REQUEST_MAX_short, SIZEOF_boolean, SIZEOF_byte, SIZEOF_char, SIZEOF_double, SIZEOF_float, SIZEOF_int, SIZEOF_long, SIZEOF_short, TC_ANONYMOUS, TC_DEFAULT, TC_EXCEPTION, TC_NEW, TC_NULL, TC_REFERENCE, TC_REPLACEMENT, TC_RESET, TC_RESETTYPE, TC_TYPE, TC_USER |
| Constructor Summary | |
BasicIO()
|
|
| Method Summary | |
static int |
extract(byte[] buffer,
int pos,
boolean[] fs)
fill the array 'fs' with values extracted from array 'buffer'. |
static int |
extract(byte[] buffer,
int pos,
boolean[] fs,
int foff,
int fcnt)
fill 'fcnt' positions in the array 'fs' starting with index 'foff' with values extracted from array 'buffer'. |
static int |
extract(byte[] buffer,
int pos,
byte[] fs)
fill the array 'fs' with values extracted from array 'buffer'. |
static int |
extract(byte[] buffer,
int pos,
byte[] fs,
int foff,
int fcnt)
fill 'fcnt' positions in the array 'fs' starting with index 'foff' with values extracted from array 'buffer'. |
static int |
extract(byte[] buffer,
int pos,
char[] fs)
fill the array 'fs' with values extracted from array 'buffer'. |
static int |
extract(byte[] buffer,
int pos,
char[] fs,
int foff,
int fcnt)
fill 'fcnt' positions in the array 'fs' starting with index 'foff' with values extracted from array 'buffer'. |
static int |
extract(byte[] buffer,
int pos,
double[] fs)
fill the array 'fs' with values extracted from array 'buffer'. |
static int |
extract(byte[] buffer,
int pos,
double[] fs,
int foff,
int fcnt)
fill 'fcnt' positions in the array 'fs' starting with index 'foff' with values extracted from array 'buffer'. |
static int |
extract(byte[] buffer,
int pos,
float[] fs)
fill the array 'fs' with values extracted from array 'buffer'. |
static int |
extract(byte[] buffer,
int pos,
float[] fs,
int foff,
int fcnt)
fill 'fcnt' positions in the array 'fs' starting with index 'foff' with values extracted from array 'buffer'. |
static int |
extract(byte[] buffer,
int pos,
int[] fs)
fill the array 'fs' with values extracted from array 'buffer'. |
static int |
extract(byte[] buffer,
int pos,
int[] fs,
int foff,
int fcnt)
fill 'fcnt' positions in the array 'fs' starting with index 'foff' with values extracted from array 'buffer'. |
static int |
extract(byte[] buffer,
int pos,
long[] fs)
fill the array 'fs' with values extracted from array 'buffer'. |
static int |
extract(byte[] buffer,
int pos,
long[] fs,
int foff,
int fcnt)
fill 'fcnt' positions in the array 'fs' starting with index 'foff' with values extracted from array 'buffer'. |
static int |
extract(byte[] buffer,
int pos,
short[] fs)
fill the array 'fs' with values extracted from array 'buffer'. |
static int |
extract(byte[] buffer,
int pos,
short[] fs,
int foff,
int fcnt)
fill 'fcnt' positions in the array 'fs' starting with index 'foff' with values extracted from array 'buffer'. |
static boolean |
extractBoolean(byte[] buffer,
int pos)
extract a boolean at position 'pos' from array 'buffer' |
static byte |
extractByte(byte[] buffer,
int pos)
extract a byte at position 'pos' from array 'buffer' |
static char |
extractChar(byte[] buffer,
int pos)
extract a char at position 'pos' from array 'buffer' |
static double |
extractDouble(byte[] buffer,
int pos)
extract a double at position 'pos' from array 'buffer' |
static float |
extractFloat(byte[] buffer,
int pos)
extract a float at position 'pos' from array 'buffer' |
static int |
extractInt(byte[] buffer,
int pos)
extract an int at position 'pos' from array 'buffer' |
static long |
extractLong(byte[] buffer,
int pos)
extract a long at position 'pos' from array 'buffer' |
static short |
extractShort(byte[] buffer,
int pos)
extract a short at position 'pos' from array 'buffer' |
static int |
extractUnsignedByte(byte[] buffer,
int pos)
extract an unsigned byte at position 'pos' from array 'buffer' |
static int |
extractUnsignedShort(byte[] buffer,
int pos)
extract an unsigned short at position 'pos' from array 'buffer' |
static int |
insert(byte[] buffer,
int pos,
boolean d)
insert the boolean 'd' into the array 'buffer' at position pos |
static int |
insert(byte[] buffer,
int pos,
boolean[] fs)
insert the array 'fs' at position 'pos' into array 'buffer' |
static int |
insert(byte[] buffer,
int pos,
boolean[] fs,
int foff,
int fcnt)
insert 'fcnt' values from array 'fs' starting with index 'foff' at position 'pos' into array 'buffer'. |
static int |
insert(byte[] buffer,
int pos,
byte d)
insert the byte 'd' into the array 'buffer' at position pos |
static int |
insert(byte[] buffer,
int pos,
byte[] fs)
insert the array 'fs' at position 'pos' into array 'buffer' |
static int |
insert(byte[] buffer,
int pos,
byte[] fs,
int foff,
int fcnt)
insert 'fcnt' values from array 'fs' starting with index 'foff' at position 'pos' into array 'buffer'. |
static int |
insert(byte[] buffer,
int pos,
char d)
insert the char 'd' into the array 'buffer' at position pos |
static int |
insert(byte[] buffer,
int pos,
char[] fs)
insert the array 'fs' at position 'pos' into array 'buffer' |
static int |
insert(byte[] buffer,
int pos,
char[] fs,
int foff,
int fcnt)
insert 'fcnt' values from array 'fs' starting with index 'foff' at position 'pos' into array 'buffer'. |
static int |
insert(byte[] buffer,
int pos,
double f)
insert the double 'd' into the array 'buffer' at position pos |
static int |
insert(byte[] buffer,
int pos,
double[] fs)
insert the array 'fs' at position 'pos' into array 'buffer' |
static int |
insert(byte[] buffer,
int pos,
double[] fs,
int foff,
int fcnt)
insert 'fcnt' values from array 'fs' starting with index 'foff' at position 'pos' into array 'buffer'. |
static int |
insert(byte[] buffer,
int pos,
float f)
insert the float 'd' into the array 'buffer' at position pos |
static int |
insert(byte[] buffer,
int pos,
float[] fs)
insert the array 'fs' at position 'pos' into array 'buffer' |
static int |
insert(byte[] buffer,
int pos,
float[] fs,
int foff,
int fcnt)
insert 'fcnt' values from array 'fs' starting with index 'foff' at position 'pos' into array 'buffer'. |
static int |
insert(byte[] buffer,
int pos,
int d)
insert the int 'd' into the array 'buffer' at position pos |
static int |
insert(byte[] buffer,
int pos,
int[] fs)
insert the array 'fs' at position 'pos' into array 'buffer' |
static int |
insert(byte[] buffer,
int pos,
int[] fs,
int foff,
int fcnt)
insert 'fcnt' values from array 'fs' starting with index 'foff' at position 'pos' into array 'buffer'. |
static int |
insert(byte[] buffer,
int pos,
long d)
insert the long 'd' into the array 'buffer' at position pos |
static int |
insert(byte[] buffer,
int pos,
long[] fs)
insert the array 'fs' at position 'pos' into array 'buffer' |
static int |
insert(byte[] buffer,
int pos,
long[] fs,
int foff,
int fcnt)
insert 'fcnt' values from array 'fs' starting with index 'foff' at position 'pos' into array 'buffer'. |
static int |
insert(byte[] buffer,
int pos,
short d)
insert the short 'd' into the array 'buffer' at position pos |
static int |
insert(byte[] buffer,
int pos,
short[] fs)
insert the array 'fs' at position 'pos' into array 'buffer' |
static int |
insert(byte[] buffer,
int pos,
short[] fs,
int foff,
int fcnt)
insert 'fcnt' values from array 'fs' starting with index 'foff' at position 'pos' into array 'buffer'. |
static int |
sizeof(boolean n)
|
static int |
sizeof(boolean[] n)
|
static int |
sizeof(byte n)
|
static int |
sizeof(byte[] n)
|
static int |
sizeof(char n)
|
static int |
sizeof(char[] n)
|
static int |
sizeof(double n)
|
static int |
sizeof(double[] n)
|
static int |
sizeof(float n)
|
static int |
sizeof(float[] n)
|
static int |
sizeof(int n)
|
static int |
sizeof(int[] n)
|
static int |
sizeof(long n)
|
static int |
sizeof(long[] n)
|
static int |
sizeof(short n)
|
static int |
sizeof(short[] n)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BasicIO()
| Method Detail |
public static final int insert(byte[] buffer,
int pos,
byte d)
public static final int insert(byte[] buffer,
int pos,
boolean d)
public static final int insert(byte[] buffer,
int pos,
short d)
public static final int insert(byte[] buffer,
int pos,
char d)
public static final int insert(byte[] buffer,
int pos,
int d)
public static final int insert(byte[] buffer,
int pos,
long d)
public static final int insert(byte[] buffer,
int pos,
float f)
public static final int insert(byte[] buffer,
int pos,
double f)
public static final boolean extractBoolean(byte[] buffer,
int pos)
public static final byte extractByte(byte[] buffer,
int pos)
public static final int extractUnsignedByte(byte[] buffer,
int pos)
public static final short extractShort(byte[] buffer,
int pos)
public static final int extractUnsignedShort(byte[] buffer,
int pos)
public static final char extractChar(byte[] buffer,
int pos)
public static final int extractInt(byte[] buffer,
int pos)
public static final long extractLong(byte[] buffer,
int pos)
public static final float extractFloat(byte[] buffer,
int pos)
public static final double extractDouble(byte[] buffer,
int pos)
public static final int sizeof(boolean n)
public static final int sizeof(boolean[] n)
public static final int insert(byte[] buffer,
int pos,
boolean[] fs)
public static final int insert(byte[] buffer,
int pos,
boolean[] fs,
int foff,
int fcnt)
public static final int extract(byte[] buffer,
int pos,
boolean[] fs)
public static final int extract(byte[] buffer,
int pos,
boolean[] fs,
int foff,
int fcnt)
public static final int sizeof(byte n)
public static final int sizeof(byte[] n)
public static final int insert(byte[] buffer,
int pos,
byte[] fs)
public static final int insert(byte[] buffer,
int pos,
byte[] fs,
int foff,
int fcnt)
public static final int extract(byte[] buffer,
int pos,
byte[] fs)
public static final int extract(byte[] buffer,
int pos,
byte[] fs,
int foff,
int fcnt)
public static final int sizeof(char n)
public static final int sizeof(char[] n)
public static final int insert(byte[] buffer,
int pos,
char[] fs)
public static final int insert(byte[] buffer,
int pos,
char[] fs,
int foff,
int fcnt)
public static final int extract(byte[] buffer,
int pos,
char[] fs)
public static final int extract(byte[] buffer,
int pos,
char[] fs,
int foff,
int fcnt)
public static final int sizeof(short n)
public static final int sizeof(short[] n)
public static final int insert(byte[] buffer,
int pos,
short[] fs)
public static final int insert(byte[] buffer,
int pos,
short[] fs,
int foff,
int fcnt)
public static final int extract(byte[] buffer,
int pos,
short[] fs)
public static final int extract(byte[] buffer,
int pos,
short[] fs,
int foff,
int fcnt)
public static final int sizeof(int n)
public static final int sizeof(int[] n)
public static final int insert(byte[] buffer,
int pos,
int[] fs)
public static final int insert(byte[] buffer,
int pos,
int[] fs,
int foff,
int fcnt)
public static final int extract(byte[] buffer,
int pos,
int[] fs)
public static final int extract(byte[] buffer,
int pos,
int[] fs,
int foff,
int fcnt)
public static final int sizeof(long n)
public static final int sizeof(long[] n)
public static final int insert(byte[] buffer,
int pos,
long[] fs)
public static final int insert(byte[] buffer,
int pos,
long[] fs,
int foff,
int fcnt)
public static final int extract(byte[] buffer,
int pos,
long[] fs)
public static final int extract(byte[] buffer,
int pos,
long[] fs,
int foff,
int fcnt)
public static final int sizeof(float n)
public static final int sizeof(float[] n)
public static final int insert(byte[] buffer,
int pos,
float[] fs)
public static final int insert(byte[] buffer,
int pos,
float[] fs,
int foff,
int fcnt)
public static final int extract(byte[] buffer,
int pos,
float[] fs)
public static final int extract(byte[] buffer,
int pos,
float[] fs,
int foff,
int fcnt)
public static final int sizeof(double n)
public static final int sizeof(double[] n)
public static final int insert(byte[] buffer,
int pos,
double[] fs)
public static final int insert(byte[] buffer,
int pos,
double[] fs,
int foff,
int fcnt)
public static final int extract(byte[] buffer,
int pos,
double[] fs)
public static final int extract(byte[] buffer,
int pos,
double[] fs,
int foff,
int fcnt)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||