public static char [ ] toSimpleCharArray ( byte [ ] barr ) { char [ ] carr = new char [ barr . length ] ; for ( int i = 0 ; i < barr . length ; i ++ ) { carr [ i ] = ( char ) ( barr [ i ] & 0xFF ) ; } return carr ; }
Converts byte array to char array by simply extending bytes to chars .