com.irisel.util
Class PropertyFileConfiguration

java.lang.Object
  extended by com.irisel.util.Configuration
      extended by com.irisel.util.PropertyFileConfiguration
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
PackageConfiguration, PackageConfiguration

public class PropertyFileConfiguration
extends Configuration

A report configuration that reads its values from the jfreereport.properties file.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.irisel.util.Configuration
DISABLE_LOGGING, DISABLE_LOGGING_DEFAULT, KEY_APP_PASS, KEY_APP_USER, KEY_CONSOLE_CLASSNAME, KEY_CONSOLE_DIRECTORY_CLASSNAME, KEY_COUNTRY, KEY_DB_AUTH_TYPE, KEY_DB_DATABASE, KEY_DB_INIT, KEY_DB_INIT_PASS, KEY_DB_PASS, KEY_DB_PORT, KEY_DB_SCHEMA, KEY_DB_SERV, KEY_DB_SYSTEM_USER, KEY_DB_SYSTEM_XPASS, KEY_DB_TYPE, KEY_DB_USER, KEY_LANG, KEY_OL_DESC_FILE, KEY_OL_SCH_FILE, KEY_OL_SRV_DESC_FILE, KEY_OL_SRV_SCH_FILE, KEY_PLAF, licpayload, licsign, LOGLEVEL, LOGLEVEL_DEFAULT, LOGTARGET
 
Constructor Summary
PropertyFileConfiguration()
          Default constructor.
 
Method Summary
 void load(java.lang.Class c, java.lang.String filename, boolean overwrite)
           
 void load(java.io.InputStream in)
          Loads the properties stored in the given file.
 void load(java.io.InputStream in, boolean overwriteCurrentProperties)
           
 void load(java.lang.String fileName)
          Loads the properties stored in the given file.
 void save(java.io.OutputStream out)
           
 void save(java.lang.String filename)
           
 
Methods inherited from class com.irisel.util.Configuration
findPropertyKeys, getClassIcon, getConfigProperties, getConfigProperty, getConfigProperty, getConfiguration, getGlobalConfig, getLogLevel, getLogTarget, isDisableLogging, isLocallyDefined, openFile, openFile, setConfigProperty, setCurrentDirectory, setCurrentDirectory, setDisableLogging, setLogLevel, setLogTarget
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyFileConfiguration

public PropertyFileConfiguration()
                          throws ConfigException
Default constructor.

Throws:
ConfigException
Method Detail

load

public void load(java.lang.String fileName)
Loads the properties stored in the given file. This method does nothing if the file does not exist or is unreadable. Appends the contents of the loaded properties to the already stored contents.

Parameters:
fileName - the file name of the stored properties.

load

public void load(java.lang.Class c,
                 java.lang.String filename,
                 boolean overwrite)

load

public void load(java.io.InputStream in)
Loads the properties stored in the given file. This method does nothing if the file does not exist or is unreadable. Appends the contents of the loaded properties to the already stored contents.

Parameters:
in - the input stream used to read the properties.

load

public void load(java.io.InputStream in,
                 boolean overwriteCurrentProperties)

save

public void save(java.lang.String filename)
          throws java.io.IOException
Throws:
java.io.IOException

save

public void save(java.io.OutputStream out)
          throws java.io.IOException
Throws:
java.io.IOException