List of usage examples for org.apache.poi.util StringUtil putCompressedUnicode
public static void putCompressedUnicode(String input, byte[] output, int offset)
From source file:org.ddt.ByteArrayUtils.java
License:Apache License
public static byte[] addString(byte[] dest, String s, boolean unicode) { int stringLength = unicode ? 2 * s.length() : s.length(); byte[] result = Arrays.copyOf(dest, dest.length + stringLength); if (unicode)/* ww w . j av a 2s .c om*/ StringUtil.putUnicodeLE(s, result, dest.length); else StringUtil.putCompressedUnicode(s, result, dest.length); return result; }