Books & Videos

Table of Contents

  1. Basic I/O

    1. Chapter 1 Introducing I/O

      1. What Is a Stream?
      2. Numeric Data
      3. Character Data
      4. Readers and Writers
      5. The Ubiquitous IOException
      6. The Console: System.out, System.in, and System.err
      7. Security Checks on I/O
    2. Chapter 2 Output Streams

      1. The OutputStream Class
      2. Writing Bytes to Output Streams
      3. Writing Arrays of Bytes
      4. Flushing and Closing Output Streams
      5. Subclassing OutputStream
      6. A Graphical User Interface for Output Streams
    3. Chapter 3 Input Streams

      1. The InputStream Class
      2. The read( ) Method
      3. Reading Chunks of Data from a Stream
      4. Counting the Available Bytes
      5. Skipping Bytes
      6. Closing Input Streams
      7. Marking and Resetting
      8. Subclassing InputStream
      9. An Efficient Stream Copier
  2. Data Sources

    1. Chapter 4 File Streams

      1. Reading Files
      2. Writing Files
      3. File Viewer, Part 1
    2. Chapter 5 Network Streams

      1. URLs
      2. URL Connections
      3. Sockets
      4. Server Sockets
      5. URLViewer
  3. Filter Streams

    1. Chapter 6 Filter Streams

      1. The Filter Stream Classes
      2. The Filter Stream Subclasses
      3. Buffered Streams
      4. PushbackInputStream
      5. Print Streams
      6. Multitarget Output Streams
      7. File Viewer, Part 2
    2. Chapter 7 Data Streams

      1. The Data Stream Classes
      2. Reading and Writing Integers
      3. Reading and Writing Floating-Point Numbers
      4. Reading and Writing Booleans
      5. Reading Byte Arrays
      6. Reading and Writing Text
      7. Miscellaneous Methods
      8. Reading and Writing Little-Endian Numbers
      9. Thread Safety
      10. File Viewer, Part 3
    3. Chapter 8 Streams in Memory

      1. Sequence Input Streams
      2. Byte Array Streams
      3. Communicating Between Threads with Piped Streams
    4. Chapter 9 Compressing Streams

      1. Inflaters and Deflaters
      2. Compressing and Decompressing Streams
      3. Working with Zip Files
      4. Checksums
      5. JAR Files
      6. File Viewer, Part 4
    5. Chapter 10 Cryptographic Streams

      1. Hash Function Basics
      2. The MessageDigest Class
      3. Digest Streams
      4. Encryption Basics
      5. The Cipher Class
      6. Cipher Streams
      7. File Viewer, Part 5
  4. Advanced and Miscellaneous Topics

    1. Chapter 11 Object Serialization

      1. Reading and Writing Objects
      2. Object Streams
      3. How Object Serialization Works
      4. Performance
      5. The Serializable Interface
      6. The ObjectInput and ObjectOutput Interfaces
      7. Versioning
      8. Customizing the Serialization Format
      9. Resolving Classes
      10. Resolving Objects
      11. Validation
      12. Sealed Objects
    2. Chapter 12 Working with Files

      1. Understanding Files
      2. Directories and Paths
      3. The File Class
      4. Filename Filters
      5. File Filters
      6. File Descriptors
      7. Random-Access Files
      8. General Techniques for Cross-Platform File Access Code
    3. Chapter 13 File Dialogs and Choosers

      1. File Dialogs
      2. JFileChooser
      3. File Viewer, Part 6
    4. Chapter 14 Multilingual Character Sets and Unicode

      1. Unicode
      2. Displaying Unicode Text
      3. Unicode Escapes
      4. UTF-8
      5. The char Data Type
      6. Other Encodings
      7. Converting Between Byte Arrays and Strings
    5. Chapter 15 Readers and Writers

      1. The java.io.Writer Class
      2. The OutputStreamWriter Class
      3. The java.io.Reader Class
      4. The InputStreamReader Class
      5. Character Array Readers and Writers
      6. String Readers and Writers
      7. Reading and Writing Files
      8. Buffered Readers and Writers
      9. Print Writers
      10. Piped Readers and Writers
      11. Filtered Readers and Writers
      12. File Viewer Finis
    6. Chapter 16 Formatted I/O with java.text

      1. The Old Way
      2. Choosing a Locale
      3. Number Formats
      4. Specifying Width with FieldPosition
      5. Parsing Input
      6. Decimal Formats
      7. An Exponential Number Format
    7. Chapter 17 The Java Communications API

      1. The Architecture of the Java Communications API
      2. Identifying Ports
      3. Communicating with a Device on a Port
      4. Serial Ports
      5. Parallel Ports
  5. Appendixes

    1. Appendix Additional Resources

      1. Digital Think
      2. Design Patterns
      3. The java.io Package
      4. Network Programming
      5. Data Compression
      6. Encryption and Related Technology
      7. Object Serialization
      8. International Character Sets and Unicode
      9. Java Communications API
      10. Updates and Breaking News
    2. Appendix Character Sets

  1. Colophon