Package adams.data.io.output
Class SimpleEEMWriter
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.io.output.AbstractDataContainerWriter<ThreeWayData>
-
- adams.data.io.output.AbstractThreeWayDataWriter
-
- adams.data.io.output.SimpleEEMWriter
-
- All Implemented Interfaces:
adams.core.AdditionalInformationHandler,adams.core.CleanUpHandler,adams.core.Destroyable,adams.core.GlobalInfoSupporter,adams.core.io.FileFormatHandler,adams.core.logging.LoggingLevelHandler,adams.core.logging.LoggingSupporter,adams.core.option.OptionHandler,adams.core.ShallowCopySupporter<adams.data.io.output.DataContainerWriter>,adams.core.SizeOfHandler,adams.data.io.output.DataContainerWriter<ThreeWayData>,Serializable,Comparable
public class SimpleEEMWriter extends AbstractThreeWayDataWriter
Writes 3-way data in spreadsheet format (tab-separated columns).
-logging-level <OFF|SEVERE|WARNING|INFO|CONFIG|FINE|FINER|FINEST> (property: loggingLevel) The logging level for outputting errors and debugging output. default: WARNING
-output <adams.core.io.PlaceholderFile> (property: output) The file to write the container to. default: ${TMP}/out.tmp- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimpleEEMWriter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanWriteMultiple()Returns whether writing of multiple containers is supported.StringgetFormatDescription()Returns a string describing the format (used in the file chooser).String[]getFormatExtensions()Returns the extension(s) of the format.StringglobalInfo()Returns a string describing the object.protected booleanwriteData(List<ThreeWayData> data)Performs the actual writing.-
Methods inherited from class adams.data.io.output.AbstractThreeWayDataWriter
initialize
-
Methods inherited from class adams.data.io.output.AbstractDataContainerWriter
checkData, cleanUp, compareTo, defineOptions, destroy, equals, forCommandLine, forName, getAdditionalInformation, getDefaultFormatExtension, getOutput, getWriters, isOutputFile, outputTipText, reset, setOutput, shallowCopy, shallowCopy, write, write
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, finishInit, getDefaultLoggingLevel, getOptionManager, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
-
Methods inherited from class adams.core.logging.LoggingObject
configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Returns a string describing the object.- Specified by:
globalInfoin interfaceadams.core.GlobalInfoSupporter- Specified by:
globalInfoin classadams.core.option.AbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
getFormatDescription
public String getFormatDescription()
Returns a string describing the format (used in the file chooser).- Specified by:
getFormatDescriptionin interfaceadams.core.io.FileFormatHandler- Specified by:
getFormatDescriptionin classadams.data.io.output.AbstractDataContainerWriter<ThreeWayData>- Returns:
- a description suitable for displaying in the file chooser
-
getFormatExtensions
public String[] getFormatExtensions()
Returns the extension(s) of the format.- Specified by:
getFormatExtensionsin interfaceadams.core.io.FileFormatHandler- Specified by:
getFormatExtensionsin classadams.data.io.output.AbstractDataContainerWriter<ThreeWayData>- Returns:
- the extension(s) (without the dot!)
-
canWriteMultiple
public boolean canWriteMultiple()
Returns whether writing of multiple containers is supported.- Specified by:
canWriteMultiplein interfaceadams.data.io.output.DataContainerWriter<ThreeWayData>- Specified by:
canWriteMultiplein classadams.data.io.output.AbstractDataContainerWriter<ThreeWayData>- Returns:
- true if multiple containers are supported
-
writeData
protected boolean writeData(List<ThreeWayData> data)
Performs the actual writing.- Specified by:
writeDatain classadams.data.io.output.AbstractDataContainerWriter<ThreeWayData>- Parameters:
data- the data to write- Returns:
- true if successfully written
-
-