|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jaudiotagger.audio.generic.AudioFileWriter
public abstract class AudioFileWriter
This abstract class is the skeleton for tag writers.
It handles the creation/closing of the randomaccessfile objects and then call the subclass method writeTag or deleteTag. These two method have to be implemented in the subclass.
| Field Summary | |
|---|---|
static java.util.logging.Logger |
logger
|
| Constructor Summary | |
|---|---|
AudioFileWriter()
|
|
| Method Summary | |
|---|---|
void |
delete(AudioFile af)
Delete the tag (if any) present in the given file |
void |
delete(java.io.RandomAccessFile raf,
java.io.RandomAccessFile tempRaf)
Delete the tag (if any) present in the given randomaccessfile, and do not close it at the end. |
void |
setAudioFileModificationListener(AudioFileModificationListener listener)
This method sets the AudioFileModificationListener.There is only one listener allowed, if you want more instances to be supported, use the ModificationHandler to broadcast those events. |
void |
write(AudioFile af)
Write the tag (if not empty) present in the AudioFile in the associated File |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.util.logging.Logger logger
| Constructor Detail |
|---|
public AudioFileWriter()
| Method Detail |
|---|
public void delete(AudioFile af)
throws CannotReadException,
CannotWriteException
af - The file to process
CannotWriteException - if anything went wrong
CannotReadException
public void delete(java.io.RandomAccessFile raf,
java.io.RandomAccessFile tempRaf)
throws CannotReadException,
CannotWriteException,
java.io.IOException
raf - The source file, already opened in r-write modetempRaf - The temporary file opened in r-write mode
CannotWriteException - if anything went wrong
CannotReadException
java.io.IOExceptionpublic void setAudioFileModificationListener(AudioFileModificationListener listener)
AudioFileModificationListener.ModificationHandler to broadcast those events.
listener - The listener. null allowed to deregister.
public void write(AudioFile af)
throws CannotWriteException
af - The file we want to process
CannotWriteException - if anything went wrong
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||