Save This Page
Home » poi-src-3.2-FINAL-20081019 » org.apache » poi » util » [javadoc | source]
org.apache.poi.util
public class: StringUtil [javadoc | source]
java.lang.Object
   org.apache.poi.util.StringUtil
Title: String Utility Description: Collection of string handling utilities
Method from org.apache.poi.util.StringUtil Summary:
format,   getFromCompressedUnicode,   getFromUnicodeBE,   getFromUnicodeBE,   getFromUnicodeLE,   getFromUnicodeLE,   getPreferredEncoding,   hasMultibyte,   isUnicodeString,   putCompressedUnicode,   putUnicodeBE,   putUnicodeLE
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.poi.util.StringUtil Detail:
 public static String format(String message,
    Object[] params) 
    Apply printf() like formatting to a string. Primarily used for logging.
 public static String getFromCompressedUnicode(byte[] string,
    int offset,
    int len) 
    Read 8 bit data (in ISO-8859-1 codepage) into a (unicode) Java String and return. (In Excel terms, read compressed 8 bit unicode as a string)
 public static String getFromUnicodeBE(byte[] string) 
    Given a byte array of 16-bit unicode characters in big endian format (most important byte first), return a Java String representation of it. { 0x00, 0x16 } -0x16
 public static String getFromUnicodeBE(byte[] string,
    int offset,
    int len) throws IllegalArgumentException, ArrayIndexOutOfBoundsException 
    Given a byte array of 16-bit unicode characters in big endian format (most important byte first), return a Java String representation of it. { 0x00, 0x16 } -0x16
 public static String getFromUnicodeLE(byte[] string) 
    Given a byte array of 16-bit unicode characters in little endian format (most important byte last), return a Java String representation of it. { 0x16, 0x00 } -0x16
 public static String getFromUnicodeLE(byte[] string,
    int offset,
    int len) throws IllegalArgumentException, ArrayIndexOutOfBoundsException 
    Given a byte array of 16-bit unicode characters in Little Endian format (most important byte last), return a Java String representation of it. { 0x16, 0x00 } -0x16
 public static String getPreferredEncoding() 
 public static boolean hasMultibyte(String value) 
    check the parameter has multibyte character
 public static boolean isUnicodeString(String value) 
    Checks to see if a given String needs to be represented as Unicode
 public static  void putCompressedUnicode(String input,
    byte[] output,
    int offset) 
    Takes a unicode (java) string, and returns it as 8 bit data (in ISO-8859-1 codepage). (In Excel terms, write compressed 8 bit unicode)
 public static  void putUnicodeBE(String input,
    byte[] output,
    int offset) 
    Takes a unicode string, and returns it as big endian (most important byte first) bytes in the supplied byte array. (In Excel terms, write uncompressed unicode)
 public static  void putUnicodeLE(String input,
    byte[] output,
    int offset) 
    Takes a unicode string, and returns it as little endian (most important byte last) bytes in the supplied byte array. (In Excel terms, write uncompressed unicode)