Java Preference createNode(String path)

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

Description

Get node path, create if not already existing.

License

Open Source License

Parameter

Parameter Description
path The absolute path name of the node.

Return

The node

Declaration

public static Preferences createNode(String path) 

Method Source Code

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

import java.util.prefs.Preferences;

public class Main {
    /** Get node path, create if not already existing.
    @param path The absolute path name of the node.
    @return The node *///from  ww w.  j  a  v  a  2  s  .  c o  m
    public static Preferences createNode(String path) {
        assert !path.startsWith("/");
        return Preferences.userRoot().node(path);
    }
}

Related

  1. backingStoreAvailable(Preferences prefs)
  2. cambiarIdioma(String lang, String country)
  3. classFor(Object obj)
  4. clearPreference(Object context)
  5. count(Preferences preferences, String preferenceName)
  6. hasEnv(String key, String value)
  7. initEnv(String key, String value)
  8. keyExists(String className, String prefName)
  9. readAllReg(String path)