Name
AbstractPreferences
Synopsis
This
class
implements all the abstract methods of Preferences
on top of a smaller set of abstract methods. Programmers creating a
Preferences implementation (or “service
provider”) can subclass this class and need define
only the nine methods whose names end in
“Spi”. Application programmers
never need to use this class.
Figure 16-124. java.util.prefs.AbstractPreferences
public abstract class AbstractPreferences extends Preferences { // Protected Constructors protected AbstractPreferences(AbstractPreferences parent, String name); // Event Registration Methods (by event name) public void addNodeChangeListener(NodeChangeListener ncl); Overrides:Preferences public void removeNodeChangeListener(NodeChangeListener ncl); Overrides:Preferences public void addPreferenceChangeListener(PreferenceChangeListener pcl); Overrides:Preferences public void removePreferenceChangeListener(PreferenceChangeListener pcl); Overrides:Preferences // Public Methods Overriding Preferences public String absolutePath( ); public String[ ] childrenNames( ) throws BackingStoreException; public void clear( ) throws BackingStoreException; public void exportNode(java.io.OutputStream os) throws java.io.IOException, BackingStoreException; public void exportSubtree(java.io.OutputStream os) throws java.io.IOException, BackingStoreException; public void flush( ) throws BackingStoreException; ...
Get Java in a Nutshell, 5th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.