|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.qtunes.ff.TrackReader
public abstract class TrackReader
A TrackReader loads the tracks from disk
Field Summary | |
---|---|
static java.lang.String[] |
MP3GENRES
|
Constructor Summary | |
---|---|
TrackReader()
|
Method Summary | |
---|---|
abstract javax.sound.sampled.AudioInputStream |
getAudioInputStream(java.io.File file)
Return the AudioInputStream for the specified File. |
static TrackReader |
getTrackReader(java.io.File file)
Return the appropriate TracKReader for the specified file - the list of readers is built in and no context is required |
static TrackReader |
getTrackReader(ServiceContext context,
java.io.File file)
Return the appropriate TracKReader for the specified file |
static TrackReader |
getTrackReader(ServiceContext context,
java.lang.String type)
Return the appropriate TracKReader for the specified type |
static TrackReader |
getTrackReader(java.lang.String type)
|
abstract java.lang.String |
getType()
Get the type of track read by this reader, eg "mp3". |
abstract boolean |
matches(java.io.File file)
Return true if this TrackReader matches the File |
abstract FieldMap |
read(java.io.File file)
Load and parse the file and return a FieldMap with its fields |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.qtunes.core.Service |
---|
getContext, reportState, startService, stopService |
Field Detail |
---|
public static final java.lang.String[] MP3GENRES
Constructor Detail |
---|
public TrackReader()
Method Detail |
---|
public abstract javax.sound.sampled.AudioInputStream getAudioInputStream(java.io.File file) throws javax.sound.sampled.UnsupportedAudioFileException, java.io.IOException
AudioInputStream
for the specified File. We
use this approach because it's more reliable than relying on
the AudioSystem
to correctly identify
the file.
javax.sound.sampled.UnsupportedAudioFileException
java.io.IOException
public abstract java.lang.String getType()
public abstract boolean matches(java.io.File file)
public abstract FieldMap read(java.io.File file) throws java.io.IOException
FieldMap
with its fields
java.io.IOException
public static final TrackReader getTrackReader(ServiceContext context, java.lang.String type)
public static final TrackReader getTrackReader(ServiceContext context, java.io.File file) throws java.io.IOException
java.io.IOException
public static final TrackReader getTrackReader(java.io.File file) throws java.io.IOException
java.io.IOException
public static final TrackReader getTrackReader(java.lang.String type)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |