|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jxl.biff.IntegerHelper
Converts excel byte representations into integers
| Constructor Summary | |
IntegerHelper()
|
|
| Method Summary | |
static byte[] |
getFourBytes(int i)
Gets a two byte array from an integer |
static void |
getFourBytes(int i,
byte[] target,
int pos)
Converts an integer into four bytes, and places it in the array at the specified position |
static int |
getInt(byte b1,
byte b2)
Gets an int from two bytes |
static int |
getInt(byte b1,
byte b2,
byte b3,
byte b4)
Gets an int from four bytes, doing all the necessary swapping |
static short |
getShort(byte b1,
byte b2)
Gets an short from two bytes |
static byte[] |
getTwoBytes(int i)
Gets a two byte array from an integer |
static void |
getTwoBytes(int i,
byte[] target,
int pos)
Converts an integer into two bytes, and places it in the array at the specified position |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public IntegerHelper()
| Method Detail |
public static int getInt(byte b1,
byte b2)
b2 - the second byteb1 - the first byte
public static short getShort(byte b1,
byte b2)
b2 - the second byteb1 - the first byte
public static int getInt(byte b1,
byte b2,
byte b3,
byte b4)
b3 - b2 - b1 - b4 - public static byte[] getTwoBytes(int i)
i - public static byte[] getFourBytes(int i)
i -
public static void getTwoBytes(int i,
byte[] target,
int pos)
target - the array to place the byte data intopos - the position at which to place the datai - the integer value to convert
public static void getFourBytes(int i,
byte[] target,
int pos)
target - the array which is to contain the converted datapos - the position in the array in which to place the datai - the integer to convert
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||