示例#1
0
        public abstract void sync();// throws BackingStoreException;

        /*
         * Returns the system preference node for the package of the given class.
         * The absolute path of the returned node is one slash followed by the given
         * class's full package name, replacing each period character ('.') with
         * a slash. For example, the absolute path of the preference associated with
         * the class Object would be "/java/lang". As a special case, the unnamed
         * package is associated with a preference node "/<unnamed>". This
         * method will create the node and its ancestors as needed. Any nodes created
         * by this method won't necessarily be persisted until the method {@code
         * flush()} is invoked.
         *
         * @param c
         *            the given class.
         * @return the system preference node for the package of the given class.
         * @throws NullPointerException
         *             if the given class is {@code null}.
         * @throws SecurityException
         *             if the {@code RuntimePermission("preferences")} is denied by
         *             a SecurityManager.
         */
        public static Preferences systemNodeForPackage(java.lang.Class c)
        {
            checkSecurity();
            return(factory.systemRoot().node(getNodeName(c)));
        }