|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.qtunes.ff.TrackReader org.qtunes.ff.TrackWriter
public abstract class TrackWriter
An interface which can be implemented by a TrackReader
if it can update a File with new fields
Field Summary |
---|
Fields inherited from class org.qtunes.ff.TrackReader |
---|
MP3GENRES |
Constructor Summary | |
---|---|
TrackWriter()
|
Method Summary | |
---|---|
abstract boolean |
write(java.io.File file,
FieldMap changes)
Update a file directly - can be used by utility classes (eg tagger package) to update files without a database. |
abstract void |
write(Track track,
FieldMap changes)
Update the track |
Methods inherited from class org.qtunes.ff.TrackReader |
---|
getAudioInputStream, getTrackReader, getTrackReader, getTrackReader, getTrackReader, getType, matches, read |
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 |
Constructor Detail |
---|
public TrackWriter()
Method Detail |
---|
public abstract void write(Track track, FieldMap changes) throws java.io.IOException
track
- the Track with the existing fieldschanges
- the Changes to those fields - a value of null
in this Map means the field is deleted, and a key of
Field.LastModified
means the File modification time will not be updated.
java.io.IOException
public abstract boolean write(java.io.File file, FieldMap changes) throws java.io.IOException
file
- the audio File to updatechanges
- the Changes to those fields - a value of null
in this Map means the field is deleted, and a key of
Field.LastModified
means the File modification time will not be updated.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |