-
Type:
Sub-task
-
Resolution: Delivered
-
Priority:
P4
-
Affects Version/s: 24
-
Component/s: core-libs
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.