public final class ConvertByteArray
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
aStringArrToByteArr(byte[] b,
int pos,
java.lang.String[] s,
int off,
int length) |
static byte[] |
aStringArrToByteArr(java.lang.String[] s) |
static byte[] |
aStringArrToByteArr(java.lang.String[] s,
int off,
int length) |
static byte[] |
booleanArrToByteArr(boolean[] b) |
static byte[] |
booleanArrToByteArr(boolean[] b,
int off,
int len) |
static void |
booleanArrToByteArr(byte[] bytes,
int pos,
boolean[] b,
int off,
int length) |
static java.lang.String |
byteArrToAString(byte[] b) |
static java.lang.String |
byteArrToAString(byte[] b,
int off,
int length) |
static java.lang.String[] |
byteArrToAStringArr(byte[] b) |
static java.lang.String[] |
byteArrToAStringArr(byte[] b,
int off,
int length) |
static void |
byteArrToAStringArr(byte[] b,
int off,
java.lang.String[] s,
int pos,
int length) |
static boolean |
byteArrToBoolean(byte[] b,
int off) |
static boolean[] |
byteArrToBooleanArr(byte[] b) |
static void |
byteArrToBooleanArr(byte[] b,
int off,
boolean[] bool,
int pos,
int length) |
static boolean[] |
byteArrToBooleanArr(byte[] b,
int off,
int length) |
static char |
byteArrToChar(byte[] b,
int off) |
static char[] |
byteArrToCharArr(byte[] b) |
static void |
byteArrToCharArr(byte[] b,
int off,
char[] c,
int pos,
int length) |
static char[] |
byteArrToCharArr(byte[] b,
int off,
int length) |
static double |
byteArrToDouble(byte[] b,
int off) |
static double[] |
byteArrToDoubleArr(byte[] b)
This method allocates a new double[] to return, based on the size of
the array b (namely b.length / 8 in size)
|
static void |
byteArrToDoubleArr(byte[] b,
int off,
double[] d,
int pos,
int length) |
static double[] |
byteArrToDoubleArr(byte[] b,
int off,
int length) |
static float |
byteArrToFloat(byte[] b,
int off) |
static float[] |
byteArrToFloatArr(byte[] b) |
static void |
byteArrToFloatArr(byte[] b,
int off,
float[] f,
int pos,
int length) |
static float[] |
byteArrToFloatArr(byte[] b,
int off,
int length) |
static int |
byteArrToInt(byte[] b,
int off) |
static int[] |
byteArrToIntArr(byte[] b) |
static int[] |
byteArrToIntArr(byte[] b,
int off,
int length) |
static void |
byteArrToIntArr(byte[] b,
int off,
int[] i,
int pos,
int length) |
static long |
byteArrToLong(byte[] b,
int off) |
static long[] |
byteArrToLongArr(byte[] b) |
static long[] |
byteArrToLongArr(byte[] b,
int off,
int length) |
static void |
byteArrToLongArr(byte[] b,
int off,
long[] l,
int pos,
int length) |
static short |
byteArrToShort(byte[] b,
int off) |
static short[] |
byteArrToShortArr(byte[] b) |
static short[] |
byteArrToShortArr(byte[] b,
int off,
int length) |
static void |
byteArrToShortArr(byte[] b,
int off,
short[] s,
int pos,
int length) |
static java.lang.String |
byteArrToUString(byte[] b) |
static java.lang.String |
byteArrToUString(byte[] b,
int off,
int strLen) |
static java.lang.String[] |
byteArrToUStringArr(byte[] b) |
static java.lang.String[] |
byteArrToUStringArr(byte[] b,
int off,
int length) |
static void |
byteArrToUStringArr(byte[] b,
int off,
java.lang.String[] s,
int pos,
int length) |
static void |
charArrToByteArr(byte[] b,
int pos,
char[] c,
int off,
int len) |
static byte[] |
charArrToByteArr(char[] c) |
static byte[] |
charArrToByteArr(char[] c,
int off,
int len) |
static void |
doubleArrToByteArr(byte[] b,
int pos,
double[] d,
int off,
int length) |
static byte[] |
doubleArrToByteArr(double[] d) |
static byte[] |
doubleArrToByteArr(double[] d,
int off,
int length) |
static void |
floatArrToByteArr(byte[] b,
int pos,
float[] f,
int off,
int len) |
static byte[] |
floatArrToByteArr(float[] f) |
static byte[] |
floatArrToByteArr(float[] f,
int off,
int length) |
static void |
intArrToByteArr(byte[] b,
int pos,
int[] i,
int off,
int len) |
static byte[] |
intArrToByteArr(int[] i) |
static byte[] |
intArrToByteArr(int[] i,
int off,
int length) |
static void |
longArrToByteArr(byte[] b,
int pos,
long[] l,
int off,
int length) |
static byte[] |
longArrToByteArr(long[] l) |
static byte[] |
longArrToByteArr(long[] l,
int off,
int length) |
static double[] |
readDoubleArr(java.io.DataInputStream rf) |
static float[] |
readFloatArr(java.io.DataInputStream rf) |
static void |
saveDoubleArr(java.io.DataOutputStream rf,
double[] arr) |
static void |
saveFloatArr(java.io.DataOutputStream rf,
float[] arr) |
static void |
shortArrToByteArr(byte[] b,
int pos,
short[] s,
int off,
int len) |
static byte[] |
shortArrToByteArr(short[] s) |
static byte[] |
shortArrToByteArr(short[] s,
int off,
int length) |
static byte[] |
stringAToByteArr(java.lang.String s) |
static byte[] |
stringUToByteArr(java.lang.String s) |
static void |
uStringArrToByteArr(byte[] b,
int pos,
java.lang.String[] s,
int off,
int length) |
static byte[] |
uStringArrToByteArr(java.lang.String[] s) |
static byte[] |
uStringArrToByteArr(java.lang.String[] s,
int off,
int length) |
static void |
writeAStringToByteArr(byte[] b,
int off,
java.lang.String s) |
static void |
writeAStringToByteArr(byte[] b,
int off,
java.lang.String s,
int pos,
int length) |
static void |
writeBooleanToByteArr(byte[] b,
int off,
boolean bool) |
static void |
writeCharToByteArr(byte[] b,
int off,
char c) |
static void |
writeDoubleToByteArr(byte[] b,
int off,
double d) |
static void |
writeFloatToByteArr(byte[] b,
int off,
float f) |
static void |
writeIntToByteArr(byte[] b,
int off,
int i) |
static void |
writeLongToByteArr(byte[] b,
int off,
long l) |
static void |
writeShortToByteArr(byte[] b,
int off,
short s) |
static void |
writeUStringToByteArr(byte[] b,
int off,
java.lang.String s) |
static void |
writeUStringToByteArr(byte[] b,
int off,
java.lang.String s,
int pos,
int length) |
public static void writeIntToByteArr(byte[] b, int off, int i)
public static void writeLongToByteArr(byte[] b, int off, long l)
public static void writeFloatToByteArr(byte[] b, int off, float f)
public static void writeDoubleToByteArr(byte[] b, int off, double d)
public static void writeBooleanToByteArr(byte[] b, int off, boolean bool)
public static void writeCharToByteArr(byte[] b, int off, char c)
public static void writeShortToByteArr(byte[] b, int off, short s)
public static void writeUStringToByteArr(byte[] b, int off, java.lang.String s)
public static void writeUStringToByteArr(byte[] b, int off, java.lang.String s, int pos, int length)
public static void writeAStringToByteArr(byte[] b, int off, java.lang.String s)
public static void writeAStringToByteArr(byte[] b, int off, java.lang.String s, int pos, int length)
public static int byteArrToInt(byte[] b, int off)
public static short byteArrToShort(byte[] b, int off)
public static float byteArrToFloat(byte[] b, int off)
public static double byteArrToDouble(byte[] b, int off)
public static long byteArrToLong(byte[] b, int off)
public static boolean byteArrToBoolean(byte[] b, int off)
public static char byteArrToChar(byte[] b, int off)
public static java.lang.String byteArrToUString(byte[] b)
public static java.lang.String byteArrToUString(byte[] b, int off, int strLen)
public static java.lang.String byteArrToAString(byte[] b)
public static java.lang.String byteArrToAString(byte[] b, int off, int length)
public static byte[] stringUToByteArr(java.lang.String s)
public static byte[] stringAToByteArr(java.lang.String s)
public static byte[] intArrToByteArr(int[] i)
public static byte[] intArrToByteArr(int[] i, int off, int length)
public static void intArrToByteArr(byte[] b, int pos, int[] i, int off, int len)
public static byte[] longArrToByteArr(long[] l)
public static byte[] longArrToByteArr(long[] l, int off, int length)
public static void longArrToByteArr(byte[] b, int pos, long[] l, int off, int length)
public static byte[] booleanArrToByteArr(boolean[] b)
public static byte[] booleanArrToByteArr(boolean[] b, int off, int len)
public static void booleanArrToByteArr(byte[] bytes, int pos, boolean[] b, int off, int length)
public static byte[] charArrToByteArr(char[] c)
public static byte[] charArrToByteArr(char[] c, int off, int len)
public static void charArrToByteArr(byte[] b, int pos, char[] c, int off, int len)
public static byte[] floatArrToByteArr(float[] f)
public static byte[] floatArrToByteArr(float[] f, int off, int length)
public static void floatArrToByteArr(byte[] b, int pos, float[] f, int off, int len)
public static byte[] doubleArrToByteArr(double[] d)
public static byte[] doubleArrToByteArr(double[] d, int off, int length)
public static void doubleArrToByteArr(byte[] b, int pos, double[] d, int off, int length)
public static byte[] shortArrToByteArr(short[] s)
public static byte[] shortArrToByteArr(short[] s, int off, int length)
public static void shortArrToByteArr(byte[] b, int pos, short[] s, int off, int len)
public static byte[] uStringArrToByteArr(java.lang.String[] s)
public static byte[] uStringArrToByteArr(java.lang.String[] s, int off, int length)
public static void uStringArrToByteArr(byte[] b, int pos, java.lang.String[] s, int off, int length)
public static byte[] aStringArrToByteArr(java.lang.String[] s)
public static byte[] aStringArrToByteArr(java.lang.String[] s, int off, int length)
public static void aStringArrToByteArr(byte[] b, int pos, java.lang.String[] s, int off, int length)
public static int[] byteArrToIntArr(byte[] b)
public static int[] byteArrToIntArr(byte[] b, int off, int length)
public static void byteArrToIntArr(byte[] b, int off, int[] i, int pos, int length)
public static long[] byteArrToLongArr(byte[] b)
public static long[] byteArrToLongArr(byte[] b, int off, int length)
public static void byteArrToLongArr(byte[] b, int off, long[] l, int pos, int length)
public static boolean[] byteArrToBooleanArr(byte[] b)
public static boolean[] byteArrToBooleanArr(byte[] b, int off, int length)
public static void byteArrToBooleanArr(byte[] b, int off, boolean[] bool, int pos, int length)
public static char[] byteArrToCharArr(byte[] b)
public static char[] byteArrToCharArr(byte[] b, int off, int length)
public static void byteArrToCharArr(byte[] b, int off, char[] c, int pos, int length)
public static short[] byteArrToShortArr(byte[] b)
public static short[] byteArrToShortArr(byte[] b, int off, int length)
public static void byteArrToShortArr(byte[] b, int off, short[] s, int pos, int length)
public static float[] byteArrToFloatArr(byte[] b)
public static float[] byteArrToFloatArr(byte[] b, int off, int length)
public static void byteArrToFloatArr(byte[] b, int off, float[] f, int pos, int length)
public static double[] byteArrToDoubleArr(byte[] b)
b
- Array to decode to doublespublic static double[] byteArrToDoubleArr(byte[] b, int off, int length)
public static void byteArrToDoubleArr(byte[] b, int off, double[] d, int pos, int length)
public static java.lang.String[] byteArrToUStringArr(byte[] b)
public static java.lang.String[] byteArrToUStringArr(byte[] b, int off, int length)
public static void byteArrToUStringArr(byte[] b, int off, java.lang.String[] s, int pos, int length)
public static java.lang.String[] byteArrToAStringArr(byte[] b)
public static java.lang.String[] byteArrToAStringArr(byte[] b, int off, int length)
public static void byteArrToAStringArr(byte[] b, int off, java.lang.String[] s, int pos, int length)
public static void saveDoubleArr(java.io.DataOutputStream rf, double[] arr) throws java.io.IOException
java.io.IOException
public static void saveFloatArr(java.io.DataOutputStream rf, float[] arr) throws java.io.IOException
java.io.IOException
public static double[] readDoubleArr(java.io.DataInputStream rf) throws java.io.IOException
java.io.IOException
public static float[] readFloatArr(java.io.DataInputStream rf) throws java.io.IOException
java.io.IOException