|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjxl.biff.StringHelper
Helper function to convert Java string objects to and from the byte representations
| 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 byte[] |
getBytes(java.lang.String s,
WorkbookSettings ws)
Gets the bytes of the specified string. |
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 |
static java.lang.String |
replace(java.lang.String input,
java.lang.String search,
java.lang.String replace)
Replaces all instances of search with replace in the input. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static byte[] getBytes(java.lang.String s)
s - the string to convert into bytes
public static byte[] getBytes(java.lang.String s,
WorkbookSettings ws)
s - the string to convert into bytes
public 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
public static final java.lang.String replace(java.lang.String input,
java.lang.String search,
java.lang.String replace)
input - the format stringsearch - the Excel character to be replacedreplace - the java equivalent
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||