Amazing Books
Temporary Blank

Saturday, May 1, 2010

Java I/O





Preface .....................................................
Correcting Misconceptions .......................................
Organization of the Book ........................................
Who You Are ................................................
Versions ...................................................
Security Issues ...............................................
Conventions Used in This Book ....................................
Request for Comments ..........................................
Acknowledgments .............................................

I: Basic I/O ..................................................
1. Introducing I/O ..............................................
1.1 What Is a Stream? ...........................................
1.2 Numeric Data .............................................
1.3 Character Data .............................................
1.4 Readers and Writers .........................................
1.5 The Ubiquitous IOException ...................................
1.6 The Console: System.out, System.in, and System.err ....................
1.7 Security Checks on I/O .......................................

2. Output Streams .............................................
2.1 The OutputStream Class ......................................
2.2 Writing Bytes to Output Streams .................................
2.3 Writing Arrays of Bytes .......................................
2.4 Flushing and Closing Output Streams ..............................
2.5 Subclassing OutputStream .....................................
2.6 A Graphical User Interface for Output Streams ........................

3. Input Streams ...............................................
3.1 The InputStream Class ........................................
3.2 The read( ) Method ..........................................
3.3 Reading Chunks of Data from a Stream ............................
3.4 Counting the Available Bytes ...................................
3.5 Skipping Bytes .............................................
3.6 Closing Input Streams ........................................
3.7 Marking and Resetting ........................................
3.8 Subclassing InputStream ......................................
3.9 An Efficient Stream Copier ....................................

II: Data Sources ...............................................
4. File Streams ................................................
4.1 Reading Files ..............................................
4.2 Writing Files ..............................................
4.3 File Viewer, Part 1 ..........................................

5. Network Streams ............................................
5.1 URLs ...................................................
5.2 URL Connections ...........................................
5.3 Sockets ..................................................
5.4 Server Sockets .............................................
5.5 URLViewer ...............................................

III: Filter Streams .............................................
6. Filter Streams ...............................................
6.1 The Filter Stream Classes ......................................
6.2 The Filter Stream Subclasses ...................................
6.3 Buffered Streams ...........................................
6.4 PushbackInputStream ........................................
6.5 Print Streams ..............................................
6.6 Multitarget Output Streams .....................................
6.7 File Viewer, Part 2 ..........................................

7. Data Streams ...............................................
7.1 The Data Stream Classes ......................................
7.2 Reading and Writing Integers ...................................
7.3 Reading and Writing Floating-Point Numbers ........................
7.4 Reading and Writing Booleans ..................................
7.5 Reading Byte Arrays .........................................
7.6 Reading and Writing Text .....................................
7.7 Miscellaneous Methods .......................................
7.8 Reading and Writing Little-Endian Numbers .........................
7.9 Thread Safety .............................................
7.10 File Viewer, Part 3 .........................................

8. Streams in Memory ...........................................
8.1 Sequence Input Streams .......................................
8.2 Byte Array Streams ..........................................
8.3 Communicating Between Threads with Piped Streams ...................

9. Compressing Streams .........................................
9.1 Inflaters and Deflaters ........................................
9.2 Compressing and Decompressing Streams ...........................
9.3 Working with Zip Files .......................................
9.4 Checksums ...............................................
9.5 JAR Files ................................................
9.6 File Viewer, Part 4 ..........................................

10. Cryptographic Streams .......................................
10.1 Hash Function Basics .......................................
10.2 The MessageDigest Class .....................................
10.3 Digest Streams ............................................
10.4 Encryption Basics ..........................................
10.5 The Cipher Class ..........................................
10.6 Cipher Streams ............................................
10.7 File Viewer, Part 5 .........................................

IV: Advanced and Miscellaneous Topics ..............................
11. Object Serialization ..........................................
11.1 Reading and Writing Objects ...................................
11.2 Object Streams ............................................
11.3 How Object Serialization Works ................................
11.4 Performance .............................................
11.5 The Serializable Interface .....................................
11.6 The ObjectInput and ObjectOutput Interfaces ........................
11.7 Versioning ...............................................
11.8 Customizing the Serialization Format .............................
11.9 Resolving Classes ..........................................
11.10 Resolving Objects .........................................
11.11 Validation ..............................................
11.12 Sealed Objects ...........................................

12. Working with Files ..........................................
12.1 Understanding Files .........................................
12.2 Directories and Paths ........................................
12.3 The File Class ............................................
12.4 Filename Filters ...........................................
12.5 File Filters ...............................................
12.6 File Descriptors ...........................................
12.7 Random-Access Files .......................................
12.8 General Techniques for Cross-Platform File Access Code ................

13. File Dialogs and Choosers ......................................
13.1 File Dialogs ..............................................
13.2 JfileChooser ..............................................
13.3 File Viewer, Part 6 .........................................

14. Multilingual Character Sets and Unicode ...........................
14.1 Unicode ................................................
14.2 Displaying Unicode Text .....................................
14.3 Unicode Escapes ...........................................
14.4 UTF-8 .................................................
14.5 The char Data Type .........................................
14.6 Other Encodings ...........................................
14.7 Converting Between Byte Arrays and Strings ........................

15. Readers and Writers .........................................
15.1 The java.io.Writer Class ......................................
15.2 The OutputStreamWriter Class .................................
15.3 The java.io.Reader Class .....................................
15.4 The InputStreamReader Class ..................................
15.5 Character Array Readers and Writers .............................
15.6 String Readers and Writers ....................................
15.7 Reading and Writing Files ....................................
15.8 Buffered Readers and Writers ..................................
15.9 Print Writers .............................................
15.10 Piped Readers and Writers ...................................
15.11 Filtered Readers and Writers ..................................
15.12 File Viewer Finis ..........................................

16. Formatted I/O with java.text ....................................
16.1 The Old Way .............................................
16.2 Choosing a Locale ..........................................
16.3 Number Formats ...........................................
16.4 Specifying Width with FieldPosition ..............................
16.5 Parsing Input .............................................
16.6 Decimal Formats ..........................................
16.7 An Exponential Number Format ................................

17. The Java Communications API ..................................
17.1 The Architecture of the Java Communications API ....................
17.2 Identifying Ports ...........................................
17.3 Communicating with a Device on a Port ...........................
17.4 Serial Ports ..............................................
17.5 Parallel Ports .............................................

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

B. Character Sets ..............................................
Colophon ....................................................

Download this book click here

No comments:

Post a Comment

Related Posts with Thumbnails
There was an error in this gadget

Put Your Ads Here!
There was an error in this gadget