|
For the latest news and information visit The GNU Crypto project |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--gnu.crypto.keyring.Properties
A set of (name => value) pairs used in keyring entries.
Keys and values are simple strings, with the key never being empty and
always treated case-insensitively.
| Constructor Summary | |
|---|---|
Properties()
Creates a new properties object. |
|
| Method Summary | |
|---|---|
void |
clear()
Removes all properties from this object. |
java.lang.Object |
clone()
Creates a copy of this properties object. |
boolean |
containsKey(java.lang.String key)
Tests if this object contains a given property name. |
boolean |
containsValue(java.lang.String value)
Tests if this object contains a given property value. |
void |
decode(java.io.DataInputStream in)
Decodes a set of properties from the given input stream. |
void |
encode(java.io.DataOutputStream out)
Encodes this set of properties to the given output stream. |
java.lang.String |
get(java.lang.String key)
Returns the value mapped by the given key, or null if there is no such mapping. |
java.lang.String |
put(java.lang.String key,
java.lang.String value)
Adds a new property to this object. |
java.lang.String |
remove(java.lang.String key)
Removes a key and its value from this object. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public Properties()
| Method Detail |
public void clear()
public java.lang.Object clone()
clone in class java.lang.Objectpublic boolean containsKey(java.lang.String key)
key - The key to test.
public boolean containsValue(java.lang.String value)
value - The value to test.
public java.lang.String put(java.lang.String key,
java.lang.String value)
key - The key, which can neither be null nor empty.value - The value, which cannot be null.
java.lang.IllegalArgumentException - If either the key or value parameter
is null, or if the key is empty.public java.lang.String get(java.lang.String key)
key - public java.lang.String remove(java.lang.String key)
key - The key of the property to remove.
public void decode(java.io.DataInputStream in)
throws java.io.IOException
in - The input stream.
java.io.IOException - If an I/O error occurs.
public void encode(java.io.DataOutputStream out)
throws java.io.IOException
out - The output stream to encode to.
java.io.IOException - If an I/O error occurs.public java.lang.String toString()
toString in class java.lang.Object
|
For the latest news and information visit The GNU Crypto project |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||