Home » JCraft » jxl » biff » [javadoc | source]
jxl.biff
public final class: StringHelper [javadoc | source]
java.lang.Object
   jxl.biff.StringHelper
Helper function to convert Java string objects to and from the byte representations
Field Summary
public static  String UNICODE_ENCODING     
Method from jxl.biff.StringHelper Summary:
getBytes,   getBytes,   getBytes,   getString,   getUnicodeBytes,   getUnicodeBytes,   getUnicodeString,   replace
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from jxl.biff.StringHelper Detail:
 public static byte[] getBytes(String s) 
Deprecated!
    Gets the bytes of the specified string. This will simply return the ASCII values of the characters in the string
 public static byte[] getBytes(String s,
    WorkbookSettings ws) 
    Gets the bytes of the specified string. This will simply return the ASCII values of the characters in the string
 public static  void getBytes(String s,
    byte[] d,
    int pos) 
    Gets the ASCII bytes from the specified string and places them in the array at the specified position
 public static String getString(byte[] d,
    int length,
    int pos,
    WorkbookSettings ws) 
    Gets a string from the data array using the character encoding for this workbook
 public static byte[] getUnicodeBytes(String s) 
    Converts the string into a little-endian array of Unicode bytes
 public static  void getUnicodeBytes(String s,
    byte[] d,
    int pos) 
    Inserts the unicode byte representation of the specified string into the array passed in
 public static String getUnicodeString(byte[] d,
    int length,
    int pos) 
    Gets a string from the data array
 public static final String replace(String input,
    String search,
    String replace) 
    Replaces all instances of search with replace in the input. Even though later versions of java can use string.replace() this is included Java 1.2 compatibility