|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Inner class that handles different file types
Method Summary | |
void |
append(java.io.File file,
java.lang.Object key,
java.lang.Object value)
Appends a given (key,value) pair to the given file. |
java.util.Map |
load(java.io.File file)
Parses the file and turns it into a Map. |
void |
save(java.io.File file,
java.util.Map map)
Saves the map to the given file. |
Method Detail |
public java.util.Map load(java.io.File file)
Implementor's notes:
LinkedHashMap
, so that the order of the entries in a
file is reflected in the map when iterating over it.
file
- the file to load from
public void save(java.io.File file, java.util.Map map)
file
- the file to save to
public void append(java.io.File file, java.lang.Object key, java.lang.Object value)
file
- the file to append tokey
- the new keyvalue
- the new value
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |