static public char [ ] convertByteToCharUTF ( byte [ ] byteArray ) { Charset c = CDM . utf8Charset ; CharBuffer output = c . decode ( ByteBuffer . wrap ( byteArray ) ) ; return output . array ( ) ; }
convert byte array to char array assuming UTF - 8 encoding