Here you can find the source of readAllReg(String path)
public static void readAllReg(String path)
//package com.java2s; //License from project: LGPL import java.util.prefs.Preferences; public class Main { public static void readAllReg(String path) { Preferences prefsdemo = Preferences.systemRoot().node(path); try {/* w ww. j av a 2s . c o m*/ String[] regkeys = prefsdemo.keys(); for (String key : regkeys) { String value = prefsdemo.get(key, null); System.out.println(value); } } catch (Exception e) { e.printStackTrace(); } } }