23.07.2013 Views

Java IO.pdf - Nguyen Dang Binh

Java IO.pdf - Nguyen Dang Binh

Java IO.pdf - Nguyen Dang Binh

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

III: Filter Streams .............................................<br />

6. Filter Streams ...............................................<br />

6.1 The Filter Stream Classes ......................................<br />

6.2 The Filter Stream Subclasses ...................................<br />

6.3 Buffered Streams ...........................................<br />

6.4 PushbackInputStream ........................................<br />

6.5 Print Streams ..............................................<br />

6.6 Multitarget Output Streams .....................................<br />

6.7 File Viewer, Part 2 ..........................................<br />

7. Data Streams ...............................................<br />

7.1 The Data Stream Classes ......................................<br />

7.2 Reading and Writing Integers ...................................<br />

7.3 Reading and Writing Floating-Point Numbers ........................<br />

7.4 Reading and Writing Booleans ..................................<br />

7.5 Reading Byte Arrays .........................................<br />

7.6 Reading and Writing Text .....................................<br />

7.7 Miscellaneous Methods .......................................<br />

7.8 Reading and Writing Little-Endian Numbers .........................<br />

7.9 Thread Safety .............................................<br />

7.10 File Viewer, Part 3 .........................................<br />

8. Streams in Memory ...........................................<br />

8.1 Sequence Input Streams .......................................<br />

8.2 Byte Array Streams ..........................................<br />

8.3 Communicating Between Threads with Piped Streams ...................<br />

9. Compressing Streams .........................................<br />

9.1 Inflaters and Deflaters ........................................<br />

9.2 Compressing and Decompressing Streams ...........................<br />

9.3 Working with Zip Files .......................................<br />

9.4 Checksums ...............................................<br />

9.5 JAR Files ................................................<br />

9.6 File Viewer, Part 4 ..........................................<br />

10. Cryptographic Streams .......................................<br />

10.1 Hash Function Basics .......................................<br />

10.2 The MessageDigest Class .....................................<br />

10.3 Digest Streams ............................................<br />

10.4 Encryption Basics ..........................................<br />

10.5 The Cipher Class ..........................................<br />

10.6 Cipher Streams ............................................<br />

10.7 File Viewer, Part 5 .........................................<br />

IV: Advanced and Miscellaneous Topics ..............................<br />

11. Object Serialization ..........................................<br />

11.1 Reading and Writing Objects ...................................<br />

11.2 Object Streams ............................................<br />

11.3 How Object Serialization Works ................................<br />

11.4 Performance<br />

.............................................<br />

11.5 The Serializable Interface .....................................<br />

11.6 The ObjectInput and ObjectOutput Interfaces ........................<br />

11.7 Versioning ...............................................<br />

11.8 Customizing the Serialization Format .............................<br />

11.9 Resolving Classes ..........................................<br />

11.10 Resolving Objects .........................................<br />

74<br />

75<br />

75<br />

80<br />

81<br />

83<br />

84<br />

85<br />

89<br />

96<br />

96<br />

98<br />

103<br />

106<br />

106<br />

107<br />

111<br />

111<br />

123<br />

124<br />

131<br />

131<br />

132<br />

135<br />

140<br />

140<br />

152<br />

159<br />

172<br />

176<br />

189<br />

193<br />

193<br />

195<br />

203<br />

209<br />

212<br />

225<br />

231<br />

236<br />

237<br />

237<br />

238<br />

239<br />

241<br />

241<br />

247<br />

249<br />

251<br />

260<br />

261

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!