1 4 package com.tc.admin; 5 6 import java.util.prefs.Preferences ; 7 8 public class PrefStomper { 9 public static void main(String [] args) throws Exception { 10 Preferences prefs = Preferences.userRoot(); 11 String [] children = prefs.childrenNames(); 12 13 for(int i = 0; i < children.length; i++) { 14 System.out.println("Removing " + children[i]); 15 prefs.node(children[i]).removeNode(); 16 } 17 18 prefs.flush(); 19 } 20 } 21 | Popular Tags |