Welcome to our website
To take full advantage of all features you need to login or register. Registration is completely free and takes only a few seconds.
Store objects using the JDK 1.4 Preferences API
Posted by Philipp Esselbach on: 10/20/2003 02:22 PM [ Print | 0 comment(s) ]
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.
