|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.utils.IniFile.Section
public static class IniFile.Section
Class representing one section of the ini file.
Constructor Summary | |
---|---|
IniFile.Section(IniFile.Section section)
Copy-constructor. |
|
IniFile.Section(java.lang.String name)
Creates a section of the given name. |
Method Summary | |
---|---|
IniFile.Section |
add(IniFile.Section section)
Adds all properties from 'section' into this one. |
IniFile.Section |
clear()
Deletes all properties within this section. |
boolean |
containsKey(java.lang.String key)
Whether the section contains property of the given key. |
java.lang.String |
get(java.lang.String key)
Returns a value of the propety with 'key'. |
java.util.Set<java.lang.String> |
getKeys()
Returns all keys stored within the map. |
java.lang.String |
getName()
Returns name of the section. |
java.util.Set<java.lang.String> |
keySet()
Alias for getKeys() . |
void |
output(java.io.PrintWriter writer)
Writes this section into the writer. |
IniFile.Section |
put(java.lang.String key,
java.lang.String value)
Sets a property key=value into the section. |
IniFile.Section |
remove(java.lang.String key)
Removes a property under the 'key' from this section. |
IniFile.Section |
set(java.lang.String key,
java.lang.String value)
Alias for put(String, String) . |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public IniFile.Section(java.lang.String name)
Name can't be null!
name
- public IniFile.Section(IniFile.Section section)
section
- Method Detail |
---|
public java.lang.String getName()
public IniFile.Section put(java.lang.String key, java.lang.String value)
key
- value
-
public java.lang.String get(java.lang.String key)
key
-
public boolean containsKey(java.lang.String key)
key
-
public java.util.Set<java.lang.String> getKeys()
public java.util.Set<java.lang.String> keySet()
getKeys()
.
public IniFile.Section remove(java.lang.String key)
key
-
public IniFile.Section clear()
public IniFile.Section set(java.lang.String key, java.lang.String value)
put(String, String)
.
key
- value
-
public IniFile.Section add(IniFile.Section section)
section
-
public void output(java.io.PrintWriter writer)
writer
- public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |