Package adams.flow.transformer.audiodata
Class Wave
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.transformer.audiodata.AbstractAudioDataReader<WaveContainer>
-
- adams.flow.transformer.audiodata.Wave
-
- All Implemented Interfaces:
adams.core.Destroyable
,adams.core.GlobalInfoSupporter
,adams.core.logging.LoggingLevelHandler
,adams.core.logging.LoggingSupporter
,adams.core.option.OptionHandler
,adams.core.SizeOfHandler
,Serializable
public class Wave extends AbstractAudioDataReader<WaveContainer>
Reads data from WAV files or URLs.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Wave()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class[]
accepts()
The accepted input types.protected WaveContainer
doRead(Object input)
Reads the data from the input.Class
generates()
The output generated by the reader.String
globalInfo()
Returns a string describing the object.-
Methods inherited from class adams.flow.transformer.audiodata.AbstractAudioDataReader
check, read
-
Methods inherited from class adams.core.option.AbstractOptionHandler
cleanUpOptions, defineOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, initialize, loggingLevelTipText, newOptionManager, reset, 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:
globalInfo
in interfaceadams.core.GlobalInfoSupporter
- Specified by:
globalInfo
in classadams.core.option.AbstractOptionHandler
- Returns:
- a description suitable for displaying in the gui
-
accepts
public Class[] accepts()
The accepted input types.- Specified by:
accepts
in classAbstractAudioDataReader<WaveContainer>
- Returns:
- the input types
-
generates
public Class generates()
The output generated by the reader.- Specified by:
generates
in classAbstractAudioDataReader<WaveContainer>
- Returns:
- the output type
-
doRead
protected WaveContainer doRead(Object input) throws Exception
Reads the data from the input.- Specified by:
doRead
in classAbstractAudioDataReader<WaveContainer>
- Parameters:
input
- the input data- Returns:
- the generated output
- Throws:
Exception
- if reading fails
-
-