Code example for Preferences

Methods: flush

0
    } 
     
    static void flushAll() { 
        try { 
            if (SYSTEM_ROOT != null)
                SYSTEM_ROOT.flush();
        } catch(BackingStoreException e) {
            log.warn("Couldn't flush system prefs.", e);
        } 
        try { 
            if (USER_ROOT != null)
                USER_ROOT.flush();
        } catch(BackingStoreException e) {
            log.warn("Couldn't flush user prefs.", e);
        } 
    } 
 
}