Buying Options
Java I/O, Second Edition
Print $59.99
Add to Cart
Safari Books Online
Add to Cart
What is this?
Print £38.50
Add to Cart
What is this?

Product Editions

  1. Java I/O, Second Edition - May 2006
  2. Java I/O - March 1999
Description
All of Java's Input/Output (I/O) facilities are based on streams, which provide simple ways to read and write data of different types. Java I/O, 2nd Edition tells you all you need to know about the four main categories of streams and uncovers less-known features to help make your I/O operations more efficient. You'll also learn how to control number formatting, use characters aside from the standard ASCII character set, and get a head start on writing truly multilingual software.
Full Description
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. Buffers and Channels
      6. The Ubiquitous IOException
      7. The Console: System.out, System.in, and System.err
      8. Security Checks on I/O
    2. Chapter 2 Output Streams

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

      1. The read( ) Method
      2. Reading Chunks of Data from a Stream
      3. Counting the Available Bytes
      4. Skipping Bytes
      5. Closing Input Streams
      6. Marking and Resetting
      7. Subclassing InputStream
      8. 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. ProgressMonitorInputStream
      6. Multitarget Output Streams
      7. File Viewer, Part 2
    2. Chapter 7 Print Streams

      1. Print Versus Write
      2. Line Breaks
      3. Error Handling
      4. printf( )
      5. Formatter
      6. Formattable
    3. Chapter 8 Data Streams

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

      1. Sequence Input Streams
      2. Byte Array Streams
      3. Communicating Between Threads Using Piped Streams
    5. Chapter 10 Compressing Streams

      1. Inflaters and Deflaters
      2. Compressing and Decompressing Streams
      3. Zip Files
      4. Checksums
      5. File Viewer, Part 4
    6. Chapter 11 JAR Archives

      1. Meta-Information: Manifest Files and Signatures
      2. The jar Tool
      3. The java.util.jar Package
      4. JarFile
      5. JarEntry
      6. Attributes
      7. Manifest
      8. JarInputStream
      9. JarOutputStream
      10. JarURLConnection
      11. Pack200
      12. Reading Resources from JAR Files
    7. Chapter 12 Cryptographic Streams

      1. Hash Functions
      2. The MessageDigest Class
      3. Digest Streams
      4. Encryption Basics
      5. The Cipher Class
      6. Cipher Streams
      7. File Viewer, Part 5
    8. Chapter 13 Object Serialization

      1. Reading and Writing Objects
      2. Object Streams
      3. How Object Serialization Works
      4. Performance
      5. The Serializable Interface
      6. Versioning
      7. Customizing the Serialization Format
      8. Resolving Classes
      9. Resolving Objects
      10. Validation
      11. Sealed Objects
      12. JavaDoc
  4. New I/O

    1. Chapter 14 Buffers

      1. Copying Files with Buffers
      2. Creating Buffers
      3. Buffer Layout
      4. Bulk Put and Get
      5. Absolute Put and Get
      6. Mark and Reset
      7. Compaction
      8. Duplication
      9. Slicing
      10. Typed Data
      11. Read-Only Buffers
      12. CharBuffers
      13. Memory-Mapped I/O
    2. Chapter 15 Channels

      1. The Channel Interfaces
      2. File Channels
      3. Converting Between Streams and Channels
      4. Socket Channels
      5. Server Socket Channels
      6. Datagram Channels
    3. Chapter 16 Nonblocking I/O

      1. Nonblocking I/O
      2. Selectable Channels
      3. Selectors
      4. Selection Keys
      5. Pipe Channels
  5. The File System

    1. Chapter 17 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
    2. Chapter 18 File Dialogs and Choosers

      1. File Dialogs
      2. JFileChooser
      3. File Viewer, Part 6
  6. Text

    1. Chapter 19 Character Sets and Unicode

      1. The Unicode Character Set
      2. UTF-16
      3. UTF-8
      4. Other Encodings
      5. Converting Between Byte Arrays and Strings
    2. Chapter 20 Readers and Writers

      1. The java.io.Writer Class
      2. The OutputStreamWriter Class
      3. The java.io.Reader Class
      4. The InputStreamReader Class
      5. Encoding Heuristics
      6. Character Array Readers and Writers
      7. String Readers and Writers
      8. Reading and Writing Files
      9. Buffered Readers and Writers
      10. Print Writers
      11. Piped Readers and Writers
      12. Filtered Readers and Writers
      13. File Viewer Finis
    3. Chapter 21 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. Devices

    1. Chapter 22 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
    2. Chapter 23 USB

      1. USB Architecture
      2. Finding Devices
      3. Controlling Devices
      4. Describing Devices
      5. Pipes
      6. IRPs
      7. Temperature Sensor Example
      8. Hot Plugging
    3. Chapter 24 The J2ME Generic Connection Framework

      1. The Generic Connection Framework
      2. ContentConnection
      3. Files
      4. HTTP
      5. Serial I/O
      6. Sockets
      7. Server Sockets
      8. Datagrams
    4. Chapter 25 Bluetooth

      1. The Bluetooth Protocol
      2. The Java Bluetooth API
      3. The Local Device
      4. Discovering Devices
      5. Remote Devices
      6. Service Records
      7. Talking to Devices
  8. Appendix

    1. Appendix Character Sets

  1. About the Author

  2. Colophon

View Full Table of Contents
Product Details
Title:
Java I/O, Second Edition
By:
Elliotte Rusty Harold
Publisher:
O'Reilly Media
Formats:
  • Print
  • Safari Books Online
Print Release:
May 2006
Pages:
736
Print ISBN:
978-0-596-52750-1
| ISBN 10:
0-596-52750-0
Customer Reviews
About the Author
  1. Elliotte Rusty Harold

    Elliotte Rusty Harold is originally from New Orleans to which he returns periodically in search of a decent bowl of gumbo. However, he currently resides in the University Town Center neighborhood of Irvine with his wife Beth, dog Shayna, and cats Charm (named after the quark) and Marjorie (named after his mother-in-law). He's an adjunct professor of computer science at Polytechnic University where he teaches Java, XML, and object oriented programming. He's a frequent speaker at industry conferences including Software Development, Dr. Dobb's Architecure & Design World, SD Best Practices, Extreme Markup Languages, and too many user groups to count. His open source projects include the XOM Library for processing XML with Java and the Amateur media player.

    View Elliotte Rusty Harold's full profile page.

  • Book cover of Java I/O