- key
- the preference key to be added or updated.
- value
- the preference value for the given key.
Type Reason Java.Lang.NullPointerException if the given key or value is null. Java.Lang.IllegalArgumentException if the given key's length is bigger than MAX_KEY_LENGTH or value's length is bigger than three quarters of MAX_KEY_LENGTH. Java.Lang.IllegalStateException if this node has been removed.
Adds a new preference to this node using the given key and the string form of the given value or updates the value if a preference with the given key already exists.
The string form of the value is the Base64-encoded binary data of the given byte array. The Base64 encoding is as defined in , section 6.8.