|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.grogra.pf.io.PropertyFileReader
public class PropertyFileReader
PropertyFileReader.java Provides functions to read properties from external files.
Constructor Summary | |
---|---|
PropertyFileReader(FileSource fs)
|
|
PropertyFileReader(java.lang.String file_name)
|
Method Summary | |
---|---|
boolean |
getBoolean(java.lang.String propertyString)
Returns the specified property as boolean value. |
double |
getDouble(java.lang.String propertyString)
Returns the specified property as double value. |
double[] |
getDoubleArray(java.lang.String propertyString)
Returns the specified property as array of double values. |
float |
getFloat(java.lang.String propertyString)
Returns the specified property as float value. |
float[] |
getFloatArray(java.lang.String propertyString)
Returns the specified property as array of float values. |
int[] |
getIntArray(java.lang.String propertyString)
Returns the specified property as a array of integer values. |
int |
getInteger(java.lang.String propertyString)
Returns the specified property as integer value. |
int |
getNumberOfReadProperties()
Returns the number of read properties. |
java.lang.String |
getString(java.lang.String propertyString)
Returns the specified property as string value. |
java.lang.String[] |
getStringArray(java.lang.String propertyString)
Returns the specified property as a array of strings. |
boolean |
load()
Loading of a property file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PropertyFileReader(FileSource fs)
public PropertyFileReader(java.lang.String file_name)
Method Detail |
---|
public boolean getBoolean(java.lang.String propertyString)
propertyString
- name of the specified property
public double getDouble(java.lang.String propertyString)
propertyString
- name of the specified property
public double[] getDoubleArray(java.lang.String propertyString)
propertyString
- name of the specified property
public float getFloat(java.lang.String propertyString)
propertyString
- name of the specified property
public float[] getFloatArray(java.lang.String propertyString)
propertyString
- name of the specified property
public int[] getIntArray(java.lang.String propertyString)
propertyString
- name of the specified property
public int getInteger(java.lang.String propertyString)
propertyString
- name of the specified property
public int getNumberOfReadProperties()
public java.lang.String getString(java.lang.String propertyString)
propertyString
- name of the specified property
public java.lang.String[] getStringArray(java.lang.String propertyString)
propertyString
- name of the specified property
public boolean load()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |