public abstract class AudioFileWriter2 extends AudioFileWriter
logger, MINIMUM_FILESIZE
Constructor and Description |
---|
AudioFileWriter2() |
Modifier and Type | Method and Description |
---|---|
void |
delete(AudioFile af)
Delete the tag (if any) present in the given file
|
protected abstract void |
deleteTag(Tag tag,
Path file)
Must be implemented by each audio format
|
void |
deleteTag(Tag tag,
RandomAccessFile raf,
RandomAccessFile tempRaf)
Same as above, but delete tag in the file.
|
void |
write(AudioFile af)
Replace with new tag
|
protected void |
writeTag(AudioFile audioFile,
Tag tag,
RandomAccessFile raf,
RandomAccessFile rafTemp)
This is called when a tag has to be written in a file.
|
protected abstract void |
writeTag(Tag tag,
Path file)
Must be implemented by each audio format
|
delete, setAudioFileModificationListener
public void delete(AudioFile af) throws CannotReadException, CannotWriteException
delete
in class AudioFileWriter
af
- The file to processCannotWriteException
- if anything went wrongCannotReadException
public void write(AudioFile af) throws CannotWriteException
write
in class AudioFileWriter
af
- The file we want to processCannotWriteException
protected abstract void deleteTag(Tag tag, Path file) throws CannotReadException, CannotWriteException
tag
- file
- CannotReadException
CannotWriteException
public void deleteTag(Tag tag, RandomAccessFile raf, RandomAccessFile tempRaf) throws CannotReadException, CannotWriteException, IOException
AudioFileWriter
deleteTag
in class AudioFileWriter
CannotReadException
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)protected abstract void writeTag(Tag tag, Path file) throws CannotWriteException
tag
- file
- CannotWriteException
protected void writeTag(AudioFile audioFile, Tag tag, RandomAccessFile raf, RandomAccessFile rafTemp) throws CannotReadException, CannotWriteException, IOException
AudioFileWriter
writeTag
in class AudioFileWriter
CannotReadException
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)Copyright © 2005–2020 jthink.net. All rights reserved.