O'Reilly logo

Sun Certification Training Guide (310-025, 310-027): Java™ 2 Programmer and Developer Exams by Jamie Jaworski

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementation

You will not rely on JDBC, which talks to a database server. Here, you are building the database server. Although some of this is provided in the download, it is important to discuss it anyway. The heart of the database is the RandomAccessFile class, which provides nonsequential access or random input/output to files. That means that you can jump to any location (file pointer) in the file with the seek() method and after you are there, you can read from and write to the file.

You must tackle an important design decision first. Do you write data as simple bytes and manage what those bytes represent and where it is or do you write data in its native data types and manage only where the data is? If you read and write pure byte streams, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required