Java Streams and Networking
To place some import on understanding the mechanics of Java streams and the I/O classes, the foundation of network communications in Java is in the java.io package. Specifically, the InputStream class and the OutputStream class can be used to execute data transfers between client and servers once socket connections are made. The Socket class ( to be seen in the Module on Networking ) has methods getInputStream() and getOutputStream(), which provide two-way communication between hosts.
page 7-20