adams.data.io.input
Class AbstractEmailFileReader

java.lang.Object
  extended by adams.core.ConsoleObject
      extended by adams.core.option.AbstractOptionHandler
          extended by adams.data.io.input.AbstractEmailReader
              extended by 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

Field Summary
protected  PlaceholderFile m_Input
          the file to read the email from.
 
Fields inherited from class adams.core.option.AbstractOptionHandler
m_DebugLevel, m_OptionManager
 
Constructor Summary
AbstractEmailFileReader()
           
 
Method Summary
protected  void check()
          Hook method for performing checks before reading the emails.
 void defineOptions()
          Adds options to the internal list of options.
 PlaceholderFile getInput()
          Returns the file to read.
 String inputTipText()
          Returns the tip text for this property.
 void setInput(PlaceholderFile value)
          Sets the file to read.
 
Methods inherited from class adams.data.io.input.AbstractEmailReader
doRead, read
 
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, globalInfo, initialize, isDebugOn, newOptionManager, reset, setDebugLevel, toCommandLine, toString
 
Methods inherited from class adams.core.ConsoleObject
getDebugging, getSystemErr, getSystemOut, sizeOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface adams.data.io.input.EmailFileReader
getFormatDescription, getFormatExtensions
 
Methods inherited from interface adams.data.io.input.EmailReader
read
 

Field Detail

m_Input

protected PlaceholderFile m_Input
the file to read the email from.

Constructor Detail

AbstractEmailFileReader

public AbstractEmailFileReader()
Method Detail

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.