adams.data.io.output
Class PropertiesEmailFileWriter
java.lang.Object
adams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.data.io.output.AbstractEmailWriter
adams.data.io.output.AbstractEmailFileWriter
adams.data.io.output.PropertiesEmailFileWriter
- All Implemented Interfaces:
- Debuggable, Destroyable, OptionHandler, SizeOfHandler, EmailFileWriter, EmailWriter, Serializable
public class PropertiesEmailFileWriter
- extends AbstractEmailFileWriter
Writes emails to properties files.
Valid options are:
-D <int> (property: debugLevel)
The greater the number the more additional info the scheme may output to
the console (0 = off).
default: 0
minimum: 0
-output <adams.core.io.PlaceholderFile> (property: output)
The file to write the email to.
default: ${CWD}
- Version:
- $Revision: 7123 $
- Author:
- fracpete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
| Methods inherited from class adams.core.option.AbstractOptionHandler |
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, initialize, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString |
PropertiesEmailFileWriter
public PropertiesEmailFileWriter()
globalInfo
public String globalInfo()
- Returns a string describing the object.
- Specified by:
globalInfo in class AbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
getFormatDescription
public String getFormatDescription()
- Returns the description of the file format.
- Returns:
- the description
getFormatExtensions
public String[] getFormatExtensions()
- Returns the extension(s) of the file format (without dot).
- Returns:
- the extensions (no dot!)
toBlankSeparated
protected String toBlankSeparated(Object[] obj)
- Turns the object array into a blank-separated string.
- Parameters:
obj - the objects to turn into string
- Returns:
- the generated string
doWrite
protected String doWrite(Email email)
- Performs the actual writing.
- Specified by:
doWrite in class AbstractEmailWriter
- Parameters:
email - the email to write
- Returns:
- the error message, null if everything OK
Copyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.