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, saveTo
getAsBoolean, 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, toString
containsKey, entrySet, isEmpty, keySet, put, putAll, remove, size, values
public FileParams(java.lang.String fileName) throws java.lang.Exception
java.lang.Exception
public FileParams(java.io.File paramsFile) throws java.lang.Exception
java.lang.Exception
public void load() throws java.io.IOException
java.io.IOException
public void save() throws java.io.IOException
java.io.IOException
public void save(java.lang.String headLine) throws java.io.IOException
java.io.IOException
public void save(java.util.List<java.lang.String> headLines) throws java.io.IOException
java.io.IOException
public java.io.File getFile()
public FileInfo getFileInfo()
public java.lang.String getRequiredString(java.lang.String key) throws java.lang.Exception
java.lang.Exception
public int getRequiredInt(java.lang.String key) throws java.lang.Exception
java.lang.Exception
public boolean getRequiredBoolean(java.lang.String key) throws java.lang.Exception
java.lang.Exception
public ToString toString(ToString s)
Dumpable
protected java.lang.String createDumpHeader()
createDumpHeader
in class PowerMap<java.lang.String,java.lang.Object>
Copyright © 2014 EsprIT-Systems. All Rights Reserved.