|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjxl.biff.IntegerHelper
Converts excel byte representations into integers
| Method Summary | |
static byte[] |
getFourBytes(int i)
Gets a four 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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 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)
b1 - a byteb2 - a byteb3 - a byteb4 - a byte
public static byte[] getTwoBytes(int i)
i - the integer
public static byte[] getFourBytes(int i)
i - the integer
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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||