All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class edu.sc.seis.TauP.PropertyLoader

edu.sc.seis.TauP.PropertyLoader

public class PropertyLoader
convenience class for loading properties.


Constructor Index

 o PropertyLoader()

Method Index

 o load()
loads the properties from a file.
 o main(String[])
 o save(Properties)
writes the current system properties out to the file given.
 o save(Properties, String)
writes the current system properties out to the file given.

Constructors

 o PropertyLoader
 public PropertyLoader()

Methods

 o load
 public static Properties load() throws IOException
loads the properties from a file. First the default properties are loaded from the distribution jar file, then the users properties are loaded, overwriting the default values. This uses ".taup" in the users home directory, followed by ".taup" in the current directory if it can be found. If neither can be found then the default Properties object is returned unmodified. A special case is made for the taup.model.path property. If it is defined in the system properties, then the system version is prepended to the users version. This allows for setting system wide search paths on UNIX via an environment variable, which is transformed into a property by the sh scripts, while still allowing individual users as well as non-UNIX systems to customize the search path.

 o save
 public static void save(Properties props) throws IOException
writes the current system properties out to the file given.

 o save
 public static void save(Properties props,
                         String filename) throws IOException
writes the current system properties out to the file given.

 o main
 public static void main(String args[])

All Packages  Class Hierarchy  This Package  Previous  Next  Index