public class ArrayTest
extends java.lang.Object
Constructor and Description |
---|
ArrayTest() |
Modifier and Type | Method and Description |
---|---|
protected static short |
bytesToshort(byte[] buffer,
int offset)
Convert bytes to a short.
|
static short[][] |
byteToshort(byte[] sdata)
Set the data.
|
static void |
main(java.lang.String[] args) |
static byte[] |
shortToByte(short[][] data)
Get the data as a transferable string.
|
protected static byte[] |
shortToBytes(short val,
byte[] buffer,
int offset)
Convert a short to bytes.
|
static java.lang.String |
shortToString(short[][] data)
Get the data as a transferable string.
|
static short[][] |
stringToshort(java.lang.String sdata)
Set the data.
|
public static java.lang.String shortToString(short[][] data)
public static short[][] stringToshort(java.lang.String sdata)
data
- The data to set.public static byte[] shortToByte(short[][] data)
public static short[][] byteToshort(byte[] sdata)
data
- The data to set.protected static short bytesToshort(byte[] buffer, int offset)
protected static byte[] shortToBytes(short val, byte[] buffer, int offset)
public static void main(java.lang.String[] args)