|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object entagged.audioformats.generic.AudioFileModificationAdapter
public class AudioFileModificationAdapter
Adapter for
AudioFileModificationListener
.
Constructor Summary | |
---|---|
AudioFileModificationAdapter()
|
Method Summary | |
---|---|
void |
fileModified(AudioFile original,
File temporary)
(overridden) |
void |
fileOperationFinished(File result)
(overridden) |
void |
fileWillBeModified(AudioFile file,
boolean delete)
(overridden) |
void |
vetoThrown(AudioFileModificationListener cause,
AudioFile original,
ModifyVetoException veto)
(overridden) |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AudioFileModificationAdapter()
Method Detail |
---|
public void fileModified(AudioFile original, File temporary) throws ModifyVetoException
fileModified
in interface AudioFileModificationListener
original
- The original file on which the operation was started.temporary
- The modified copy. (It may be of zero size if the original was
modified)
ModifyVetoException
- If the Results doesn't fit the expectations of the listener,
it can prevent the replacement of the original by temporary.AudioFileModificationListener.fileModified(entagged.audioformats.AudioFile,
java.io.File)
public void fileOperationFinished(File result)
fileOperationFinished
in interface AudioFileModificationListener
result
- The remaining file. It's not of AudioFile
since it may
be possible that a new file was created. In that case the
audiolibs would need to parse the file again, which leads to
long and unnecessary operation time, if the tag data is not
needed any more.AudioFileModificationListener.fileOperationFinished(java.io.File)
public void fileWillBeModified(AudioFile file, boolean delete) throws ModifyVetoException
fileWillBeModified
in interface AudioFileModificationListener
file
- The file that will be modified.delete
- true
if the deletion of tag data will be
performed.
ModifyVetoException
- Thrown if the listener wants to prevent the process.AudioFileModificationListener.fileWillBeModified(entagged.audioformats.AudioFile,
boolean)
public void vetoThrown(AudioFileModificationListener cause, AudioFile original, ModifyVetoException veto)
vetoThrown
in interface AudioFileModificationListener
cause
- The instance which caused the veto.original
- The original file, that was about to be modified.veto
- The thrown exception.AudioFileModificationListener.vetoThrown(entagged.audioformats.generic.AudioFileModificationListener,
entagged.audioformats.AudioFile,
entagged.audioformats.exceptions.ModifyVetoException)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |