|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--jxl.biff.StringHelper
Helper function to convert Java string objects to and from the byte representations
| Constructor Summary | |
StringHelper()
|
|
| Method Summary | |
static byte[] |
getBytes(java.lang.String s)
Deprecated. |
static void |
getBytes(java.lang.String s,
byte[] d,
int pos)
Gets the ASCII bytes from the specified string and places them in the array at the specified position |
static java.lang.String |
getString(byte[] d,
int length,
int pos,
WorkbookSettings ws)
Gets a string from the data array using the character encoding for this workbook |
static byte[] |
getUnicodeBytes(java.lang.String s)
Converts the string into a little-endian array of Unicode bytes |
static void |
getUnicodeBytes(java.lang.String s,
byte[] d,
int pos)
Inserts the unicode byte representation of the specified string into the array passed in |
static java.lang.String |
getUnicodeString(byte[] d,
int length,
int pos)
Gets a string from the data array |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public StringHelper()
| Method Detail |
public static byte[] getBytes(java.lang.String s)
s - the string to convert into bytespublic static byte[] getUnicodeBytes(java.lang.String s)
s - the string to convert
public static void getBytes(java.lang.String s,
byte[] d,
int pos)
pos - the position at which to place the converted datas - the string to convertd - the byte array which will contain the converted string data
public static void getUnicodeBytes(java.lang.String s,
byte[] d,
int pos)
pos - the position at which to insert the converted datas - the string to convertd - the byte array which will hold the string data
public static java.lang.String getString(byte[] d,
int length,
int pos,
WorkbookSettings ws)
pos - The start position of the stringlength - The number of characters in the stringd - The byte dataws - the workbook settings
public static java.lang.String getUnicodeString(byte[] d,
int length,
int pos)
pos - The start position of the stringlength - The number of characters in the stringd - The byte data
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||