jdk/src/java.prefs/share/classes/java/util/prefs/Preferences.java
changeset 29397 65faf3bd73ad
parent 25859 3317bb8137f4
child 30043 b0dd05ec3db1
equal deleted inserted replaced
29396:80759eb7fda9 29397:65faf3bd73ad
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   487      * @throws IllegalArgumentException if <tt>key.length()</tt> exceeds
   487      * @throws IllegalArgumentException if <tt>key.length()</tt> exceeds
   488      *       <tt>MAX_KEY_LENGTH</tt> or if <tt>value.length</tt> exceeds
   488      *       <tt>MAX_KEY_LENGTH</tt> or if <tt>value.length</tt> exceeds
   489      *       <tt>MAX_VALUE_LENGTH</tt>.
   489      *       <tt>MAX_VALUE_LENGTH</tt>.
   490      * @throws IllegalStateException if this node (or an ancestor) has been
   490      * @throws IllegalStateException if this node (or an ancestor) has been
   491      *         removed with the {@link #removeNode()} method.
   491      *         removed with the {@link #removeNode()} method.
       
   492      * @throws IllegalArgumentException if either the key or the value contain
       
   493      *         the null control character, code point U+0000.
   492      */
   494      */
   493     public abstract void put(String key, String value);
   495     public abstract void put(String key, String value);
   494 
   496 
   495     /**
   497     /**
   496      * Returns the value associated with the specified key in this preference
   498      * Returns the value associated with the specified key in this preference