Java Preference readAllReg(String path)

Here you can find the source of readAllReg(String path)

Description

read All Reg

License

LGPL

Declaration

public static void readAllReg(String path) 

Method Source Code


//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();
        }
    }
}

Related

  1. count(Preferences preferences, String preferenceName)
  2. createNode(String path)
  3. hasEnv(String key, String value)
  4. initEnv(String key, String value)
  5. keyExists(String className, String prefName)
  6. savePreference(String key, Object value)
  7. userNodeForClass(Class clazz)
  8. writeReg2(String name, String value, Class clazz)