Package adams.data.conversion
Class ByteArrayToDataContainer.DummyReader
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.data.io.input.AbstractDataContainerReader<ByteArrayToDataContainer.DummyContainer>
-
- adams.data.conversion.ByteArrayToDataContainer.DummyReader
-
- All Implemented Interfaces:
AdditionalInformationHandler
,CleanUpHandler
,Destroyable
,GlobalInfoSupporter
,FileFormatHandler
,LoggingLevelHandler
,LoggingSupporter
,OptionHandler
,ShallowCopySupporter<DataContainerReader>
,SizeOfHandler
,DataContainerReader<ByteArrayToDataContainer.DummyContainer>
,StreamableBinaryDataContainerReader<ByteArrayToDataContainer.DummyContainer>
,StreamableDataContainerReader<ByteArrayToDataContainer.DummyContainer>
,Serializable
,Comparable
- Enclosing class:
- ByteArrayToDataContainer
public static class ByteArrayToDataContainer.DummyReader extends AbstractDataContainerReader<ByteArrayToDataContainer.DummyContainer> implements StreamableBinaryDataContainerReader<ByteArrayToDataContainer.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 String
getFormatDescription()
Returns a string describing the format (used in the file chooser).String[]
getFormatExtensions()
Returns the extension(s) of the format.String
globalInfo()
Returns a string describing the object.List<ByteArrayToDataContainer.DummyContainer>
read(InputStream input)
Returns the data containers generated from the input stream.protected void
readData()
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:AbstractOptionHandler
Returns a string describing the object.- Specified by:
globalInfo
in interfaceGlobalInfoSupporter
- Specified by:
globalInfo
in classAbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
getFormatDescription
public String getFormatDescription()
Description copied from class:AbstractDataContainerReader
Returns a string describing the format (used in the file chooser).- Specified by:
getFormatDescription
in interfaceFileFormatHandler
- Specified by:
getFormatDescription
in classAbstractDataContainerReader<ByteArrayToDataContainer.DummyContainer>
- Returns:
- a description suitable for displaying in the file chooser
-
getFormatExtensions
public String[] getFormatExtensions()
Description copied from class:AbstractDataContainerReader
Returns the extension(s) of the format.- Specified by:
getFormatExtensions
in interfaceFileFormatHandler
- Specified by:
getFormatExtensions
in classAbstractDataContainerReader<ByteArrayToDataContainer.DummyContainer>
- Returns:
- the extension (without the dot!)
-
readData
protected void readData()
Description copied from class:AbstractDataContainerReader
Performs the actual reading.- Specified by:
readData
in classAbstractDataContainerReader<ByteArrayToDataContainer.DummyContainer>
-
read
public List<ByteArrayToDataContainer.DummyContainer> read(InputStream input)
Description copied from interface:StreamableDataContainerReader
Returns the data containers generated from the input stream.- Specified by:
read
in interfaceStreamableDataContainerReader<ByteArrayToDataContainer.DummyContainer>
- Parameters:
input
- the stream to read from- Returns:
- the data generated from the stream
-
-