4.1. Overview

Communication over networks, with files, and even between applications, is represented in Java by streams. Stream-based communication is central to almost any type of Java application. The concept of streams is especially important when dealing with networking applications. Almost all network communication (except UDP communication) is conducted over streams, so it is essential that programmers be familiar with this concept.

Readers with previous input/output (I/O) stream experience may choose to skim through this section, but will likely benefit from a revised look at the topic, as changes to streams were introduced in JDK1.1 to deal with text-based reading and writing. A thorough knowledge of I/O streams is critical for almost ...

Get Java™ Network Programming and Distributed Computing now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.