Introduction to Streams

A stream is simply an abstract representation of a physical input or output device. A stream can be thought of as a pipe that bytes of data flow through, and therefore data can be both read to and written from a stream.

As you have probably guessed, there are two forms of streams: input streams and output streams. Examples of input streams are a keyboard, disk file, or remote network application that is sending data. Examples of an output stream are a disk file, a console window, or even a printer.



Java 1.4 Game Programming
Java 1.4 Game Programming (Wordware Game and Graphics Library)
ISBN: 1556229631
EAN: 2147483647
Year: 2003
Pages: 237

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net