All Packages Class Hierarchy This Package Previous Next Index
Class net.strandberg.file.PropertyFile
java.lang.Object
|
+----net.strandberg.file.PropertyFile
- public class PropertyFile
- extends Object
Class PropertyFile is used to get properties from file
- Version:
- $Revision: 0.0 $
- Author:
- Mats Strandberg
-
PropertyFile(String)
- Constructs a new PropertyFile.
-
PropertyFile(String, boolean)
- Constructs a new PropertyFile.
-
finalize()
- Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
-
getProperty(String)
-
-
main(String[])
- The main method is used for testing.
-
removeProperty(String)
-
-
save()
-
-
setProperty(String, String)
-
PropertyFile
public PropertyFile(String path) throws IOException
- Constructs a new PropertyFile.
- Parameters:
- path - path to the file in the file system
PropertyFile
public PropertyFile(String path,
boolean create) throws NoSuchFileException, IOException
- Constructs a new PropertyFile.
- Parameters:
- path - path to the file in the file system
- create - true if a file should be created in the case where
the file does not exists
main
public static void main(String args[]) throws IOException, Throwable
- The main method is used for testing.
- Parameters:
- args - command line arguments as described above.
finalize
protected void finalize() throws Throwable
- Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
- Overrides:
- finalize in class Object
getProperty
public String getProperty(String key)
setProperty
public String setProperty(String key,
String value)
removeProperty
public String removeProperty(String key)
save
public void save() throws IOException
All Packages Class Hierarchy This Package Previous Next Index