Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8341566 Add Reader.of(CharSequence)
  3. JDK-8344910

Release Note: `Reader.of(CharSequence)` Method

XMLWordPrintable

    • b22
    • 24

      The static factory method `java.io.Reader.of(CharSequence)` has been added to get a `Reader` that reads characters from a `CharSequence` (`String` and `StringBuilder` are examples of a `CharSequence`). The returned `Reader` is more efficient than using a `java.io.StringReader` in some cases, as the latter requires conversion to `String` and synchronization.

            mkarg Markus Karg
            mkarg Markus Karg
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: