equal
deleted
inserted
replaced
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 |