Java, Java, Java, Object-Oriented Problem Solving (3rd Edition)

[Page 511]

Chapter 11. Files and Streams: Input/Output Techniques

OBJECTIVES

After studying this chapter, you will

  • Be able to read and write text files.

  • Know how to read and write binary files.

  • Understand the use of InputStreams and OutputStreams.

  • Be able to design methods for performing input and output.

  • Know how to use the File class.

  • Be able to use the JFileChooser class.

OUTLINE

11.1

Introduction

11.2

Streams and Files

11.3

CASE STUDY: Reading and Writing Text Files

11.4

The File Class

11.5

Example: Reading and Writing Binary Files

11.6

Object Serialization: Reading and Writing Objects

11.7

From the Java Library: javax.swing.JFileChooser

11.8

Using File Data in Programs

 

Databases and Personal Privacy

 

Chapter Summary

 

Solutions to Self-Study Exercises

 

Exercises

Категории