public static final String getUnicodeString ( byte [ ] data , int offset ) { int length = getUnicodeStringLengthInBytes ( data , offset ) ; return length == 0 ? "" : new String ( data , offset , length , CharsetHelper . UTF16LE ) ; }
Reads a string of two byte characters from the input array . This method assumes that the string finishes either at the end of the array or when char zero is encountered . The value starts at the position specified by the offset parameter .