Fr. 80.00

Java I/O

English · Paperback / Softback

Shipping usually within 3 to 5 weeks

Description

Read more

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 provides many different kinds of streams, each with its own application. The universe of streams is divided into four large categories: input streams and output streams, for reading and writing binary data; and readers and writers, for reading and writing textual (character) data. You're almost certainly familiar with the basic kinds of streams--but did you know that there's a CipherInputStream for reading encrypted data? And a ZipOutputStream for automatically compressing data? Do you know how to use buffered streams effectively to make your I/O operations more efficient? Java I/O tells you all you ever need to know about streams--and probably more.
A discussion of I/O wouldn't be complete without treatment of character sets and formatting. Java supports the UNICODE standard, which provides definitions for the character sets of most written languages. Consequently, Java is the first programming language that lets you do I/O in virtually any language. Java also provides a sophisticated model for formatting textual and numeric data. Java I/O shows you how to control number formatting, use characters aside from the standard (but outdated) ASCII character set, and get a head start on writing truly multilingual software.
Java I/O includes:Coverage of all I/O classes and related classes - In-depth coverage of Java's number formatting facilities and its support for International character sets.

List of contents

Part I. Basic I/O

1. Introducing I/O
What Is a Stream?
Numeric Data
Character Data
Readers and Writers
Buffers and Channels
The Ubiquitous IO
Exception
The Console: System.out, System.in, and System.err
Security Checks on I/O

2. Output Streams
Writing Bytes to Output Streams
Writing Arrays of Bytes
Closing Output Streams
Flushing Output Streams
Subclassing Output Stream
A Graphical User Interface for Output Streams

3. Input Streams
The read( ) Method
Reading Chunks of Data from a Stream
Counting the Available Bytes
Skipping Bytes
Closing Input Streams
Marking and Resetting
Subclassing Input Stream
An Efficient Stream Copier

Part II. Data Sources

4. File Streams
Reading Files
Writing Files
File Viewer, Part 1

5. Network Streams
URLs
URL Connections
Sockets
Server Sockets
URL
Viewer

Part III. Filter Streams

6. Filter Streams
The Filter Stream Classes
The Filter Stream Subclasses
Buffered Streams

About the author

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 Prospect Heights neighborhood of Brooklyn with his wife Beth, dog Shayna, and cat Marjorie (named after his mother-in-law). 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.

Summary

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. Focusing on Java 5.0 APIs, this book tells you about streams shows you how to control number formatting, use characters aside from the standard ASCII character set, and write multilingual software.

Product details

Authors Elliote Rusty Harold, Elliotte Harold, Elliotte Rusty Harold
Publisher O'Reilly Media
 
Languages English
Product format Paperback / Softback
Released 01.01.2006
 
EAN 9780596527501
ISBN 978-0-596-52750-1
No. of pages 700
Weight 960 g
Series Java Ser.
Subjects Natural sciences, medicine, IT, technology > IT, data processing > Programming languages

Web programming, COMPUTERS / Internet / Web Programming

Customer reviews

No reviews have been written for this item yet. Write the first review and be helpful to other users when they decide on a purchase.

Write a review

Thumbs up or thumbs down? Write your own review.

For messages to CeDe.ch please use the contact form.

The input fields marked * are obligatory

By submitting this form you agree to our data privacy statement.