org.jfree.report.util
Class PropertyFileReportConfiguration

java.lang.Object
  extended byorg.jfree.report.util.ReportConfiguration
      extended byorg.jfree.report.util.PropertyFileReportConfiguration
All Implemented Interfaces:
org.jfree.util.Configuration, java.io.Serializable
Direct Known Subclasses:
PackageConfiguration

public class PropertyFileReportConfiguration
extends ReportConfiguration

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

Author:
Thomas Morgner
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jfree.report.util.ReportConfiguration
DISABLE_LOGGING, DISABLE_LOGGING_DEFAULT, FONTRENDERER_ISBUGGY_FRC, FONTRENDERER_ISBUGGY_FRC_DEFAULT, FONTRENDERER_USEALIASING, FONTRENDERER_USEALIASING_DEFAULT, LOGLEVEL, LOGLEVEL_DEFAULT, LOGTARGET, LOGTARGET_DEFAULT, NO_PRINTER_AVAILABLE, PRINT_OPERATION_COMMENT, PRINT_OPERATION_COMMENT_DEFAULT, REPORT_RESOURCE_BUNDLE_KEY, STRICT_ERRORHANDLING, STRICT_ERRORHANDLING_DEFAULT, WARN_INVALID_COLUMNS, WARN_INVALID_COLUMNS_DEFAULT
 
Constructor Summary
PropertyFileReportConfiguration()
          Default constructor.
 
Method Summary
 void load(java.io.InputStream in)
          Loads the properties stored in the given file.
 void load(java.lang.String fileName)
          Loads the properties stored in the given file.
 
Methods inherited from class org.jfree.report.util.ReportConfiguration
findPropertyKeys, getConfigProperties, getConfigProperty, getConfigProperty, getConfiguration, getGlobalConfig, getLogLevel, getLogTarget, getParentConfig, getPlatformDefaultEncoding, insertConfiguration, isDisableLogging, isFontRendererBuggy, isFontRendererUseAliasing, isLocallyDefined, isPrintOperationComment, isStrictErrorHandling, isWarnInvalidColumns, setConfigProperty, setDisableLogging, setFontRendererBuggy, setFontRendererUseAliasing, setLogLevel, setLogTarget, setParentConfig, setPrintOperationComment, setStrictErrorHandling, setWarnInvalidColumns
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyFileReportConfiguration

public PropertyFileReportConfiguration()
Default constructor.

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.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.