net.shredzone.ifish.db
Class RenameCallback.DefaultRenameCallback
java.lang.Object
net.shredzone.ifish.db.RenameCallback.DefaultRenameCallback
- All Implemented Interfaces:
- RenameCallback
- Direct Known Subclasses:
- SmartRenameCallback
- Enclosing interface:
- RenameCallback
public static class RenameCallback.DefaultRenameCallback
- extends Object
- implements RenameCallback
A default implementation of the RenameCallback which will always
fail throwing a DatabaseException.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RenameCallback.DefaultRenameCallback
public RenameCallback.DefaultRenameCallback()
renameDirectory
public File renameDirectory(File base,
File directory)
throws DatabaseException,
IOException
- A directory name exceeded the maximum length of 52 characters.
This method will always throw an exception
- Specified by:
renameDirectory in interface RenameCallback
- Parameters:
base - Base directory (jukebox mount point)directory - Directory with the bad name
- Returns:
- Directory's new name, null if this directory is to be ignored
- Throws:
DatabaseException - Directory could not be renamed
IOException - An IO error occured during nenaming
renameFile
public File renameFile(File base,
File file)
throws DatabaseException,
IOException
- A file name exceeded the maximum length of 52 characters.
This method will always throw a DatabaseException.
- Specified by:
renameFile in interface RenameCallback
- Parameters:
base - Base directory (jukebox mount point)file - File with the bad name
- Returns:
- New file name, null if this file is to be ignored
- Throws:
DatabaseException - Directory could not be renamed
IOException - An IO error occured during nenaming
Copyright © 2007-2011
shredzone.org. All Rights Reserved.