public class FileParams extends PropertyMap
| Constructor and Description |
|---|
FileParams(java.io.File paramsFile) |
FileParams(java.lang.String fileName) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
createDumpHeader() |
java.io.File |
getFile() |
FileInfo |
getFileInfo() |
boolean |
getRequiredBoolean(java.lang.String key) |
int |
getRequiredInt(java.lang.String key) |
java.lang.String |
getRequiredString(java.lang.String key) |
void |
load()
Adds the key-value pairs from the given file to the list
|
void |
save()
Saves the current key-value pairs in the file they where loaded from.
|
void |
save(java.util.List<java.lang.String> headLines)
Saves the current key-value pairs in the file they where loaded from.
|
void |
save(java.lang.String headLine) |
ToString |
toString(ToString s)
This method allows subclasses to add values to the existing ToString of the superclass.
|
clone, loadFrom, loadFrom, saveTo, saveTo, saveTogetAsBoolean, getAsBoolean, getAsDate, getAsDate, getAsDouble, getAsDouble, getAsDuration, getAsDuration, getAsFloat, getAsFloat, getAsInt, getAsInt, getAsLong, getAsLong, getAsShort, getAsShort, getAsString, getAsString, getAsTime, getAsTime, getAsTimestamp, getAsTimestamp, getMaxKeyLength, reverse, toDumpString, toDumpString, toStringcontainsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, valuespublic FileParams(java.lang.String fileName)
throws java.lang.Exception
java.lang.Exceptionpublic FileParams(java.io.File paramsFile)
throws java.lang.Exception
java.lang.Exceptionpublic void load()
throws java.io.IOException
java.io.IOExceptionpublic void save()
throws java.io.IOException
java.io.IOExceptionpublic void save(java.lang.String headLine)
throws java.io.IOException
java.io.IOExceptionpublic void save(java.util.List<java.lang.String> headLines)
throws java.io.IOException
java.io.IOExceptionpublic java.io.File getFile()
public FileInfo getFileInfo()
public java.lang.String getRequiredString(java.lang.String key)
throws java.lang.Exception
java.lang.Exceptionpublic int getRequiredInt(java.lang.String key)
throws java.lang.Exception
java.lang.Exceptionpublic boolean getRequiredBoolean(java.lang.String key)
throws java.lang.Exception
java.lang.Exceptionpublic ToString toString(ToString s)
Dumpableprotected java.lang.String createDumpHeader()
createDumpHeader in class PowerMap<java.lang.String,java.lang.Object>Copyright © 2014 EsprIT-Systems. All Rights Reserved.