Store objects using the JDK 1.4 Preferences API

The Preferences API — a lightweight, cross-platform persistence API introduced in JDK 1.4 — is designed to store small amounts of data (string, simple byte arrays, and so on.) and was not intended to be an interface to a traditional database. It can, however, be effective as a storage device if your data can be expressed as simple objects. This article offers an introduction to the API, explains how objects are stored, demonstrates the process in action, and provides a code library to do the work.

5 Comments

  1. 2003-10-20 9:38 pm
  2. 2003-10-20 9:57 pm
  3. 2003-10-20 10:56 pm
  4. 2003-10-21 7:28 am
  5. 2003-10-21 4:34 pm