Streams As Input and Output Data Sources


Java™ 2 Primer Plus
By Steven Haines, Steve Potts

Table of Contents
Chapter 12.  Using Java's Input and Output Classes

Java defines the concept of a stream as an interface to a data source; it comes in two forms:

  • Input Streams

  • Output Streams

Input streams represent sources that you can read data from and output streams represent sources that you can write data to. To further subdivide the types of data that can be read from streams Java defines streams that read byte data and streams that read character data. Byte data would represent binary data such as images, whereas character data would represent readable text such as HTML pages or text files.


    Java 2 Primer Plus
    Java 2 Primer Plus
    ISBN: 0672324156
    EAN: 2147483647
    Year: 2001
    Pages: 332

    Similar book on Amazon © 2008-2017.
    If you may any questions please contact us: