private String pickCharset(){
  if (charset != null) {
    return charset;
  }
 else   if (utf8Supported) {
    return "UTF-8";
  }
 else {
    return System.getProperty("file.encoding");
  }
}

private String pickCharset ( ) { if ( charset != null ) { return charset ; } else if ( utf8Supported ) { return "UTF-8" ; } else { return System . getProperty ( "file.encoding" ) ; } }
returns the name of the charset that should be used in textual transmissions .
