public class MP3FileWriter extends AudioFileWriter
logger, MINIMUM_FILESIZE
Constructor and Description |
---|
MP3FileWriter() |
Modifier and Type | Method and Description |
---|---|
void |
delete(AudioFile af)
Delete the Id3v1 and ID3v2 tags from file
|
void |
deleteTag(AudioFile f) |
protected void |
deleteTag(Tag tag,
RandomAccessFile raf,
RandomAccessFile tempRaf)
Same as above, but delete tag in the file.
|
void |
writeFile(AudioFile f) |
protected void |
writeTag(AudioFile audioFile,
Tag tag,
RandomAccessFile raf,
RandomAccessFile rafTemp)
This is called when a tag has to be written in a file.
|
delete, setAudioFileModificationListener, write
public void deleteTag(AudioFile f) throws CannotWriteException
CannotWriteException
public void writeFile(AudioFile f) throws CannotWriteException
CannotWriteException
public void delete(AudioFile af) throws CannotReadException, CannotWriteException
delete
in class AudioFileWriter
af
- CannotReadException
CannotWriteException
protected void writeTag(AudioFile audioFile, Tag tag, RandomAccessFile raf, RandomAccessFile rafTemp) throws CannotWriteException, IOException
AudioFileWriter
writeTag
in class AudioFileWriter
CannotWriteException
- when an error occured during the generation of the tagIOException
- is thrown when the RandomAccessFile operations throw it (you
should never throw them manually)protected void deleteTag(Tag tag, RandomAccessFile raf, RandomAccessFile tempRaf) throws CannotWriteException, IOException
AudioFileWriter
deleteTag
in class AudioFileWriter
CannotWriteException
- when an error occured during the deletion of the tagIOException
- is thrown when the RandomAccessFile operations throw it (you
should never throw them manually)Copyright © 2005–2020 jthink.net. All rights reserved.