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 WaveContainerdoRead(Object input)Reads the data from the input.Classgenerates()The output generated by the reader.StringglobalInfo()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:
globalInfoin interfaceadams.core.GlobalInfoSupporter- Specified by:
globalInfoin classadams.core.option.AbstractOptionHandler- Returns:
- a description suitable for displaying in the gui
-
accepts
public Class[] accepts()
The accepted input types.- Specified by:
acceptsin classAbstractAudioDataReader<WaveContainer>- Returns:
- the input types
-
generates
public Class generates()
The output generated by the reader.- Specified by:
generatesin classAbstractAudioDataReader<WaveContainer>- Returns:
- the output type
-
doRead
protected WaveContainer doRead(Object input) throws Exception
Reads the data from the input.- Specified by:
doReadin classAbstractAudioDataReader<WaveContainer>- Parameters:
input- the input data- Returns:
- the generated output
- Throws:
Exception- if reading fails
-
-