public static String decodeString ( Codec codec , String s ) throws Codec . CannotDecodeException { try { return new String ( codec . decode ( s ) , "UTF-8" ) ; } catch ( UnsupportedEncodingException ex ) { // shouldn't happen throw new RuntimeException ( ex ) ; } }
Decodes the string using the codec provided . Returns a string