Package org.apache.poi.hwpf.util
Class DoubleByteUtil
- java.lang.Object
-
- org.apache.poi.hwpf.util.DoubleByteUtil
-
public class DoubleByteUtil extends Object
Utilities for working with double byte CodePages.Provides constants for understanding numeric codepages, along with utilities to translate these into Java Character Sets.
-
-
Field Summary
Fields Modifier and Type Field Description static CharsetBIG5static Set<Charset>DOUBLE_BYTE_CHARSETS
-
Constructor Summary
Constructors Constructor Description DoubleByteUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Stringcp950ToString(byte[] data, int offset, int lengthInBytes)This tries to convert a LE byte array in cp950 (Microsoft's dialect of Big5) to a String.
-
-
-
Method Detail
-
cp950ToString
public static String cp950ToString(byte[] data, int offset, int lengthInBytes)
This tries to convert a LE byte array in cp950 (Microsoft's dialect of Big5) to a String. We know MS zero-padded ascii, and we drop those. There may be areas for improvement in this.- Returns:
- Decoded String
-
-