Package adams.flow.transformer.audioinfo
Class MP3
- java.lang.Object
-
- adams.core.logging.LoggingObject
-
- adams.core.logging.CustomLoggingLevelObject
-
- adams.core.option.AbstractOptionHandler
-
- adams.flow.transformer.audioinfo.AbstractAudioInfoReader
-
- adams.flow.transformer.audioinfo.MP3
-
- 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 MP3 extends AbstractAudioInfoReader
Outputs information on the incoming Wave data.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MP3()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class[]
accepts()
The accepted input types.protected Map<String,Object>
doRead(Object input)
Reads the info from the input.protected String
formatTime(long seconds)
protected Map<String,Object>
getId3v1Fields(com.mpatric.mp3agic.Mp3File mp3file)
protected Map<String,Object>
getId3v2Fields(com.mpatric.mp3agic.Mp3File mp3file)
protected Map<String,Object>
getMp3Fields(com.mpatric.mp3agic.Mp3File mp3file)
String
globalInfo()
Returns a string describing the object.protected void
showField(Map<String,Object> info, String name, String field)
protected void
showField(Map<String,Object> info, String name, String field, boolean last, String units)
protected void
showField(Map<String,Object> info, String name, String field, String units)
protected String
vbrString(boolean vbr)
-
Methods inherited from class adams.flow.transformer.audioinfo.AbstractAudioInfoReader
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 classAbstractAudioInfoReader
- Returns:
- the input types
-
formatTime
protected String formatTime(long seconds)
-
vbrString
protected String vbrString(boolean vbr)
-
showField
protected void showField(Map<String,Object> info, String name, String field, String units)
-
showField
protected void showField(Map<String,Object> info, String name, String field, boolean last, String units)
-
-