private static final String toUTF8String ( byte [ ] b ) { String ns = null ; try { ns = new String ( b , "UTF8" ) ; } catch ( UnsupportedEncodingException e ) { if ( TraceComponent . isAnyTracingEnabled ( ) && tc . isEventEnabled ( ) ) { Tr . event ( tc , "Error converting to string; " + e ) ; } } return ns ; }
Convert the byte representation to the UTF - 8 String form .