public CharsetDecoder getDecoder() {
    try {
      return charset.newDecoder()
              .onMalformedInput(CodingErrorAction.REPORT)
              .onUnmappableCharacter(CodingErrorAction.REPORT);
    } catch (UnsupportedCharsetException e) {
      throw new RuntimeException(
          "FSA's encoding charset is not supported: " + encoding);
    }
  }
public CharsetDecoder getDecoder ( ) { try { return charset . newDecoder ( ) . onMalformedInput ( CodingErrorAction . REPORT ) . onUnmappableCharacter ( CodingErrorAction . REPORT ) ; } catch ( UnsupportedCharsetException e ) { throw new RuntimeException ( "FSA's encoding charset is not supported: " + encoding ) ; } }
@return Returns a new {@link CharsetDecoder} for the {@link #encoding}.