Chapter 12

   

Java™ 2 Primer Plus
By Steven Haines, Steve Potts

Table of Contents
Appendix C.  Answers to Review Questions


A1:

java.io.InputStream and java.io.OutputStream

A2:

java.io.Reader and java.io.Writer

A3:

Primitive types

A4:

java.io.BufferedReader

A5:

java.io.PrintStream

A6:

Chaining is the action of wrapping an existing stream by another stream that is easier to read or write from. It is useful because streams exist to service specific types of data and depending on the data you want to read or write there is a stream that makes it easier for you.

A7:

The java.io.StreamTokenizer class tokenizes input, using a delimiter that you specify. This enables you to read data in a way specific to the nature of your data; e.g. you could read a document word by word or a comma-separated value (CSV) file token-by-token without reading the commas.


       
    Top
     



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

    Similar book on Amazon

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