O'Reilly logo

Borland® JBuilder™ Developer’s Guide by Jeff Swisher, Saleem Siddiqui, Michael Landy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Input and Output Streams

Streams is the term used for reading and writing of information to an object, audio, OS pipe command, and file. This section focuses on the reading and writing of files using the many different stream classes. The stream for objects will be covered in the “Object Serialization” section later in the chapter. The streams for audio and piping will not be covered.

Streams flow in a single direction from one entity to another. To read and write from one entity to another requires two streams: one stream for reading and one stream for writing.

The System package has a predefined input stream, output stream, and error stream. The predefined streams are System.in, System.out, and System.err. System.in represents an input stream ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required