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

Constructor Index

 o PropertyFile(String)
Constructs a new PropertyFile.
 o PropertyFile(String, boolean)
Constructs a new PropertyFile.

Method Index

 o finalize()
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
 o getProperty(String)
 o main(String[])
The main method is used for testing.
 o removeProperty(String)
 o save()
 o setProperty(String, String)

Constructors

 o PropertyFile
 public PropertyFile(String path) throws IOException
Constructs a new PropertyFile.

Parameters:
path - path to the file in the file system
 o 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

Methods

 o 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.
 o 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
 o getProperty
 public String getProperty(String key)
 o setProperty
 public String setProperty(String key,
                           String value)
 o removeProperty
 public String removeProperty(String key)
 o save
 public void save() throws IOException

All Packages  Class Hierarchy  This Package  Previous  Next  Index