UMM-CSci-Systems / Echo-client-server

Echo client-server lab using sockets in Java
MIT License
0 stars 1 forks source link

Say something about `transferTo` #14

Open NicMcPhee opened 2 years ago

NicMcPhee commented 2 years ago

Starting in Java 9, the InputStream class got a new [transferTo](https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/io/InputStream.html#transferTo(java.io.OutputStream) method that basically does 80% of the server.

We should probably acknowledge that and either recommend it as the best solution or specifically disallow it.