Chapter 12. Streams and Files

   


  • Streams

  • The Complete Stream Zoo

  • ZIP File Streams

  • Use of Streams

  • Object Streams

  • File Management

  • New I/O

  • Regular Expressions

In this chapter, we cover the methods for handling files and directories as well as the methods for actually writing and reading data. This chapter also shows you the object serialization mechanism that lets you store objects as easily as you can store text or numeric data. Next, we turn to several improvements that were made in the "new I/O" package java.nio, introduced in JDK 1.4 We finish the chapter with a discussion of regular expressions, even though they are not actually related to streams and files. We couldn't find a better place to handle that topic, and apparently neither could the Java team the regular expression API specification was attached to the specification request for the "new I/O" features of JDK 1.4.


       
    top



    Core Java 2 Volume I - Fundamentals
    Core Java(TM) 2, Volume I--Fundamentals (7th Edition) (Core Series) (Core Series)
    ISBN: 0131482025
    EAN: 2147483647
    Year: 2003
    Pages: 132

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