adams.data.io.input
Class AbstractEmailFileReader
java.lang.Object
adams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.data.io.input.AbstractEmailReader
adams.data.io.input.AbstractEmailFileReader
- All Implemented Interfaces:
- Debuggable, Destroyable, OptionHandler, SizeOfHandler, EmailFileReader, EmailReader, Serializable
- Direct Known Subclasses:
- PropertiesEmailFileReader
public abstract class AbstractEmailFileReader
- extends AbstractEmailReader
- implements EmailFileReader
Ancestor of email readers that read emails from files.
- 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, globalInfo, initialize, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString |
m_Input
protected PlaceholderFile m_Input
- the file to read the email from.
AbstractEmailFileReader
public AbstractEmailFileReader()
defineOptions
public void defineOptions()
- Adds options to the internal list of options.
- Specified by:
defineOptions in interface OptionHandler- Overrides:
defineOptions in class AbstractOptionHandler
setInput
public void setInput(PlaceholderFile value)
- Sets the file to read.
- Specified by:
setInput in interface EmailFileReader
- Parameters:
value - the file
getInput
public PlaceholderFile getInput()
- Returns the file to read.
- Specified by:
getInput in interface EmailFileReader
- Returns:
- the object
inputTipText
public String inputTipText()
- Returns the tip text for this property.
- Specified by:
inputTipText in interface EmailFileReader
- Returns:
- tip text for this property suitable for
displaying in the GUI or for listing the options.
check
protected void check()
- Hook method for performing checks before reading the emails. Throws
IllegalStateException in case something is wrong.
Ensures that input is a file and present.
- Overrides:
check in class AbstractEmailReader
Copyright © 2013 University of Waikato, Hamilton, NZ. All Rights Reserved.