Murach's Beginning Java 2, SDK 1.4
In contrast to text files, binary files can store data using the primitive numeric data types, so theyre often used in Java applications that work with numeric data. This chapter shows you how to read and write binary files, including random-access files
time-saving information to have at hand whenever you need it.
|
|
|
|
Classes that write binary output streams |
568 |
|
How to connect a binary output stream to a file |
570 |
|
How to work with the DataOutput interface |
572 |
|
How to write a binary file |
574 |
|
Examples that write binary files |
576 |
|
|
Classes that read binary input streams |
578 |
|
How to connect a binary input stream to a file |
580 |
|
How to work with the DataInput interface |
582 |
|
How to read a binary file |
584 |
|
Examples that read binary files |
586 |
|
How to combine two files into a single input stream |
588 |
|
|
Constructors and methods of the RandomAccessFile class |
590 |
|
How to read and write random-access files |
592 |
|
How to read and write fixed-length strings |
594 |
|
Examples that work with a random-access file |
596 |
|
|
The user interface for this application |
598 |
|
BookIO calls in the BookFrame and BookPanel classes |
598 |
|
The code for the BookIO class |
600 |
|
The code for the Book class |
606 |
|
|
t |
|
|
|
|
© Copyright 1998-2008 Mike Murach &
Associates, Inc. All rights reserved.
|