Package adams.data.conversion
Class StringToDataContainer.DummyReader
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.io.input.AbstractDataContainerReader<StringToDataContainer.DummyContainer>
-
- adams.data.conversion.StringToDataContainer.DummyReader
-
- All Implemented Interfaces:
AdditionalInformationHandler,CleanUpHandler,Destroyable,GlobalInfoSupporter,FileFormatHandler,LoggingLevelHandler,LoggingSupporter,OptionHandler,ShallowCopySupporter<DataContainerReader>,SizeOfHandler,DataContainerReader<StringToDataContainer.DummyContainer>,StreamableDataContainerReader<StringToDataContainer.DummyContainer>,StreamableTextBasedDataContainerReader<StringToDataContainer.DummyContainer>,Serializable,Comparable
- Enclosing class:
- StringToDataContainer
public static class StringToDataContainer.DummyReader extends AbstractDataContainerReader<StringToDataContainer.DummyContainer> implements StreamableTextBasedDataContainerReader<StringToDataContainer.DummyContainer>
Dummy reader.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class adams.data.io.input.AbstractDataContainerReader
m_CreateDummyReport, m_Input, m_InputIsFile, m_Processed, m_ReadData
-
Fields inherited from class adams.core.option.AbstractOptionHandler
m_OptionManager
-
Fields inherited from class adams.core.logging.LoggingObject
m_Logger, m_LoggingIsEnabled, m_LoggingLevel
-
-
Constructor Summary
Constructors Constructor Description DummyReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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.List<StringToDataContainer.DummyContainer>read(InputStream input)Returns the data containers generated from the input stream.protected voidreadData()Performs the actual reading.-
Methods inherited from class adams.data.io.input.AbstractDataContainerReader
checkData, cleanUp, compareTo, createDummyReport, createDummyReportTipText, defineOptions, destroy, doRead, equals, getAdditionalInformation, getCreateDummyReport, getDefaultFormatExtension, getInput, initialize, inputTipText, isInputFile, postProcessData, read, reset, setCreateDummyReport, setInput, shallowCopy, shallowCopy
-
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
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface adams.core.AdditionalInformationHandler
getAdditionalInformation
-
Methods inherited from interface adams.core.CleanUpHandler
cleanUp
-
Methods inherited from interface java.lang.Comparable
compareTo
-
Methods inherited from interface adams.data.io.input.DataContainerReader
createDummyReportTipText, getCreateDummyReport, getInput, inputTipText, isInputFile, read, setCreateDummyReport, setInput
-
Methods inherited from interface adams.core.Destroyable
destroy
-
Methods inherited from interface adams.core.io.FileFormatHandler
getDefaultFormatExtension
-
Methods inherited from interface adams.core.logging.LoggingLevelHandler
getLoggingLevel
-
Methods inherited from interface adams.core.option.OptionHandler
cleanUpOptions, defineOptions, getOptionManager, toCommandLine
-
Methods inherited from interface adams.core.ShallowCopySupporter
shallowCopy, shallowCopy
-
-
-
-
Method Detail
-
globalInfo
public String globalInfo()
Description copied from class:AbstractOptionHandlerReturns a string describing the object.- Specified by:
globalInfoin interfaceGlobalInfoSupporter- Specified by:
globalInfoin classAbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
getFormatDescription
public String getFormatDescription()
Description copied from class:AbstractDataContainerReaderReturns a string describing the format (used in the file chooser).- Specified by:
getFormatDescriptionin interfaceFileFormatHandler- Specified by:
getFormatDescriptionin classAbstractDataContainerReader<StringToDataContainer.DummyContainer>- Returns:
- a description suitable for displaying in the file chooser
-
getFormatExtensions
public String[] getFormatExtensions()
Description copied from class:AbstractDataContainerReaderReturns the extension(s) of the format.- Specified by:
getFormatExtensionsin interfaceFileFormatHandler- Specified by:
getFormatExtensionsin classAbstractDataContainerReader<StringToDataContainer.DummyContainer>- Returns:
- the extension (without the dot!)
-
readData
protected void readData()
Description copied from class:AbstractDataContainerReaderPerforms the actual reading.- Specified by:
readDatain classAbstractDataContainerReader<StringToDataContainer.DummyContainer>
-
read
public List<StringToDataContainer.DummyContainer> read(InputStream input)
Description copied from interface:StreamableDataContainerReaderReturns the data containers generated from the input stream.- Specified by:
readin interfaceStreamableDataContainerReader<StringToDataContainer.DummyContainer>- Parameters:
input- the stream to read from- Returns:
- the data generated from the stream
-
-