List of usage examples for org.apache.poi.util StringUtil putUnicodeLE
public static void putUnicodeLE(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)//from w w w . j a v a 2 s.c o m StringUtil.putUnicodeLE(s, result, dest.length); else StringUtil.putCompressedUnicode(s, result, dest.length); return result; }