public void changeCharset(String charsetName) throws IOException {
  this.charsetName=charsetName;
  reader.changeCharset(charsetName);
  writer.changeCharset(charsetName);
}

public void changeCharset ( String charsetName ) throws IOException { this . charsetName = charsetName ; reader . changeCharset ( charsetName ) ; writer . changeCharset ( charsetName ) ; }
changes the current charset .
