public Hex(final String charsetName){
  this(Charset.forName(charsetName));
}

public Hex ( final String charsetName ) { this ( Charset . forName ( charsetName ) ) ; }
creates a new codec with the given charset name .
