@Deprecated public class ConfigFile extends Object implements ConfigSource
| Constructor and Description |
|---|
ConfigFile()
Deprecated.
|
ConfigFile(ConfigFile default_cf)
Deprecated.
|
ConfigFile(File cf)
Deprecated.
|
ConfigFile(File f,
File localf)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
File |
getFile()
Deprecated.
|
String |
getOption(String key)
Deprecated.
|
int |
getProp(String name,
int defval)
Deprecated.
Returns an int property.
|
String |
getProp(String name,
String defval)
Deprecated.
Returns a string property.
|
Object |
getSourceObject()
Deprecated.
|
ConfigSource |
getSubSource(String key)
Deprecated.
|
void |
setFile(File f)
Deprecated.
Called to set the file to use.
|
void |
setProp(String key,
int val,
String comment)
Deprecated.
Sets a int property.
|
void |
setProp(String key,
String val,
String comment)
Deprecated.
Sets a string property.
|
void |
setSearchFile(String fin)
Deprecated.
Sets a file and searches the path for it.
|
String |
toString()
Deprecated.
|
public ConfigFile()
public ConfigFile(ConfigFile default_cf)
public void setFile(File f) throws Exception
Exceptionpublic void setSearchFile(String fin) throws Exception
Exceptionpublic ConfigSource getSubSource(String key)
getSubSource in interface ConfigSourcepublic File getFile()
public String getProp(String name, String defval) throws Exception
Exceptionpublic int getProp(String name, int defval) throws Exception
Exceptionpublic void setProp(String key, String val, String comment) throws Exception
Exceptionpublic void setProp(String key, int val, String comment) throws Exception
Exceptionpublic String getOption(String key) throws Exception
getOption in interface ConfigSourceExceptionpublic Object getSourceObject()
getSourceObject in interface ConfigSourceCopyright © 2017 etc.to. All rights reserved.