Java Preference Get get(String key, String defaultValue)

Here you can find the source of get(String key, String defaultValue)

Description

get

License

Open Source License

Declaration

public static String get(String key, String defaultValue) 

Method Source Code


//package com.java2s;
//License from project: Open Source License 

import java.util.prefs.Preferences;

public class Main {
    private static final Preferences reg = Preferences.systemRoot().node("/interflow");

    public static String get(String key) {
        return reg.get(key, null);
    }//from   w w  w . j  a v a 2 s .  c  o  m

    public static String get(String key, String defaultValue) {
        return reg.get(key, defaultValue);
    }
}

Related

  1. getAltNode(final String name)
  2. getBoolean(final String key, final boolean defaultValue)
  3. getCLOB(Preferences prefs, String key, String def)
  4. getClobStorage(Preferences prefs, String key)