{
enc = EncodingRegistry.getInstance().getEncoding(encoding);
}
// Log.debug ("Encoding: " + enc);
final ByteBuffer byteBuffer = new ByteBuffer(data, pos, length);
final CodePointBuffer cp = enc.decode(byteBuffer, null);
return Utf16LE.getInstance().encodeString(cp);
}
}