Documentation for this section has not yet been entered.
Type Reason Java.Lang.UnsupportedOperationException if this decoder does not implement an auto-detecting charset. Java.Lang.IllegalStateException if insufficient bytes have been read to determine the charset.
Gets the charset detected by this decoder; this method is optional.
If implementing an auto-detecting charset, then this decoder returns the detected charset from this method when it is available. The returned charset will be the same for the rest of the decode operation.
If insufficient bytes have been read to determine the charset, an IllegalStateException will be thrown.
The default implementation always throws UnsupportedOperationException, so it should be overridden by a subclass if needed.