Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8270490 Charset.forName() taking fallback default value
  3. JDK-8276137

Release Note: Charset.forName() Taking fallback Default Value

XMLWordPrintable

      A new method `Charset.forName()` that takes `fallback` charset object has been introduced in `java.nio.charset` package. The new method returns `fallback` if `charsetName` is illegal or the charset object is not available for the name. If `fallback` is passed as `null` the caller can check if the named charset was available without having to catch the exceptions thrown by the `Charset.forName(name)` method.

            naoto Naoto Sato
            naoto Naoto Sato
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: