de.grogra.pf.io
public class PropertyFileReader extends java.lang.Object
| Constructor and Description |
|---|
PropertyFileReader() |
PropertyFileReader(java.io.File file) |
PropertyFileReader(FileSource fs) |
PropertyFileReader(java.lang.String file_name) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
load(java.io.File file) |
boolean |
load(java.io.InputStream inFileStream) |
boolean |
save(java.io.File file) |
boolean |
save(java.io.OutputStream outFileStream) |
boolean |
save(java.lang.String path) |
public PropertyFileReader()
public PropertyFileReader(java.io.File file)
public PropertyFileReader(FileSource fs)
public PropertyFileReader(java.lang.String file_name)
public boolean getBoolean(java.lang.String propertyString)
propertyString - name of the specified propertypublic double getDouble(java.lang.String propertyString)
propertyString - name of the specified propertypublic double[] getDoubleArray(java.lang.String propertyString)
propertyString - name of the specified propertypublic float getFloat(java.lang.String propertyString)
propertyString - name of the specified propertypublic float[] getFloatArray(java.lang.String propertyString)
propertyString - name of the specified propertypublic int[] getIntArray(java.lang.String propertyString)
propertyString - name of the specified propertypublic int getInteger(java.lang.String propertyString)
propertyString - name of the specified propertypublic int getNumberOfReadProperties()
public java.lang.String getString(java.lang.String propertyString)
propertyString - name of the specified propertypublic java.lang.String[] getStringArray(java.lang.String propertyString)
propertyString - name of the specified propertypublic boolean load()
public boolean load(java.io.File file)
public boolean load(java.io.InputStream inFileStream)
public boolean save(java.io.File file)
public boolean save(java.io.OutputStream outFileStream)
public boolean save(java.lang.String path)