|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sourceforge.dvb.projectx.common.Settings
The Settings class handles the settings for Project-X.
Constructor Summary | |
Settings()
Constructor |
|
Settings(java.lang.String filename)
Constructor |
Method Summary | |
java.lang.String |
addInputDirectory(java.lang.Object value)
adds input_directory Xinput object |
void |
addOutputDirectory(java.lang.Object value)
adds output_directory string |
void |
addOutputDirectory(java.lang.Object value,
int index)
adds output_directory string |
void |
buildInputDirectories()
build input_directory Xinput object from property list (strings only) |
void |
buildOutputDirectories()
build output_directory from property list (strings only) |
java.lang.Boolean |
getBooleanProperty(java.lang.String key)
Returns a Boolean property. |
boolean |
getBooleanProperty(java.lang.String[] key_defaultValue)
Returns a Boolean property or the given defaultValue. |
boolean |
getBooleanProperty(java.lang.String key,
boolean defaultValue)
Returns a Boolean property or the given defaultValue. |
java.util.Map |
getHashMapProperty(java.lang.String key)
Gets a Map of properties starting with key. |
java.lang.String |
getInifile()
Returns the ini filename. |
java.util.ArrayList |
getInputDirectories()
returns input_directory Xinput objects |
int |
getIntProperty(java.lang.String key)
Returns an integer property. |
int |
getIntProperty(java.lang.String[] key_defaultValue)
Returns an integer property. |
int |
getIntProperty(java.lang.String key,
int defaultValue)
Returns an integer property. |
java.util.List |
getListProperty(java.lang.String key)
Gets a List of properties starting with key. |
java.util.ArrayList |
getOutputDirectories()
returns output_directory strings |
java.lang.String |
getProperty(java.lang.String key)
Returns a String property. |
java.lang.String |
getProperty(java.lang.String[] key_defaultValue)
Returns a String property. |
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaultValue)
Returns a String property. |
void |
load()
Loads the ini file. |
void |
loadProperties(java.io.ByteArrayInputStream is)
|
void |
remove(java.lang.String key)
Removes a property. |
void |
removeInputDirectory(int index)
removes input_directory Xinput object |
void |
removeListProperty(java.lang.String key)
removes a List of properties starting with key. |
void |
removeOutputDirectory(int index)
removes output_directory string |
void |
save()
Saves the ini file. |
void |
save(java.lang.String str)
Saves the ini file (std or extra name) |
void |
setBooleanProperty(java.lang.String key,
boolean value)
Returns a boolean property. |
void |
setHashMapProperty(java.lang.String key,
java.util.Map map)
Sets a Map of properties starting with key. |
void |
setIntProperty(java.lang.String key,
int value)
Returns an integer property. |
void |
setListProperty(java.lang.String key,
java.util.List list)
Sets a List of properties starting with key. |
void |
setProperty(java.lang.Object[] key,
java.lang.Object value)
Sets a Object property. |
void |
setProperty(java.lang.String key,
java.lang.Object value)
Sets a Object property. |
void |
setProperty(java.lang.String key,
java.lang.String value)
Sets a String property. |
byte[] |
storeProperties()
|
void |
updateInputDirectories()
updates property list (strings only) |
void |
updateOutputDirectories()
updates property list (strings only) |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Settings()
public Settings(java.lang.String filename)
filename
- Method Detail |
public void loadProperties(java.io.ByteArrayInputStream is) throws java.io.IOException
public byte[] storeProperties() throws java.io.IOException
public void load()
public void save()
public void save(java.lang.String str)
public void buildInputDirectories()
public void updateInputDirectories()
public java.lang.String addInputDirectory(java.lang.Object value)
public void removeInputDirectory(int index)
public java.util.ArrayList getInputDirectories()
public void buildOutputDirectories()
public void updateOutputDirectories()
public void addOutputDirectory(java.lang.Object value)
public void addOutputDirectory(java.lang.Object value, int index)
public void removeOutputDirectory(int index)
public java.util.ArrayList getOutputDirectories()
public void setProperty(java.lang.String key, java.lang.String value)
key
- value
- public void setProperty(java.lang.String key, java.lang.Object value)
key
- value
- public void setProperty(java.lang.Object[] key, java.lang.Object value)
key
- of objvalue
- public java.lang.String getProperty(java.lang.String key)
key
- public java.lang.String getProperty(java.lang.String key, java.lang.String defaultValue)
key
- defaultValue
- public java.lang.String getProperty(java.lang.String[] key_defaultValue)
key
- defaultValue
- public void setIntProperty(java.lang.String key, int value)
key
- value
- public int getIntProperty(java.lang.String key)
key
- public int getIntProperty(java.lang.String key, int defaultValue)
key
- defaultValue
- public int getIntProperty(java.lang.String[] key_defaultValue)
key
- defaultValue
- public void setBooleanProperty(java.lang.String key, boolean value)
key
- public java.lang.Boolean getBooleanProperty(java.lang.String key)
key
- public boolean getBooleanProperty(java.lang.String key, boolean defaultValue)
key
- defaultValue
- public boolean getBooleanProperty(java.lang.String[] key_defaultValue)
key
- defaultValue
- public void setListProperty(java.lang.String key, java.util.List list)
key
- list
- public java.util.List getListProperty(java.lang.String key)
key
- public void removeListProperty(java.lang.String key)
key
- public void setHashMapProperty(java.lang.String key, java.util.Map map)
key
- map
- public java.util.Map getHashMapProperty(java.lang.String key)
key
- public void remove(java.lang.String key)
key
- public java.lang.String getInifile()
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |