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 they’re 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.

Chapter 18 How to work with binary files
How to write binary files 568
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
How to read binary files 578
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
How to work with random-access files 590
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 I/O code for the Book Maintenance application 598
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
Perspective 608
t




Murach's Beginning Java 2

Learn more about this book

See customer reviews

Add this book to your cart

See the Java 1.5 edition