Input and Output in Java

The package contains classes that perform input and output. In Java, I/O classes are differentiated according to the type of data being read or written. Byte oriented and numeric data is written with output streams and read with input streams. Character data, that is text, is written with writers and read with readers. Whether you use streams or readers and writers depends on the type of data you're dealing with. All text data, especially non-ASCII text, should be passed through a reader or writer.

The two main stream classes are and The two main reader and writer classes are and These are abstract base classes for many different subclasses with more specialized abilities.

Next | Top | Cafe au Lait

Copyright 1997, 1998, 2006 Elliotte Rusty Harold
Last Modified April 20, 2006