I read the Java 10 documentation on java.io.Reader.transferTo(...) and it says:
Reads all characters from this reader and writes the characters to the given writer in the order that they are read
The method transferTo in Reader would be very useful as currently it is quite verbose to copy data from reader to writer. As we mostly use InputStream and OutputStream in real life applications, is there a similar method for them?