public String getString(String charset) {
    try {
      return new String(getBytes(), charset);
    }
    catch (UnsupportedEncodingException e) {
      throw new IllegalStateException(e.getMessage());
    }
  }
public String getString ( String charset ) { try { return new String ( getBytes ( ) , charset ) ; } catch ( UnsupportedEncodingException e ) { throw new IllegalStateException ( e . getMessage ( ) ) ; } }
@return output of the finished process converted to a String.

@param charset The name of a supported char set.