edu.jhu.tmaj.client.importer.images.data
Class RenameOp

java.lang.Object
  extended by edu.jhu.tmaj.client.importer.images.data.RenameOp

public final class RenameOp
extends java.lang.Object

Represents an operation where a file is renamed.


Constructor Summary
RenameOp(java.io.File file, java.lang.String newName)
          Constructs this object.
 
Method Summary
 void perform()
          Actually perform the renaming.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenameOp

public RenameOp(java.io.File file,
                java.lang.String newName)
Constructs this object.

Parameters:
file - a File object representing the file to be renamed.
newName - the new name of the file. This does NOT include the directory path, only the new file name.
Method Detail

perform

public void perform()
             throws java.io.IOException
Actually perform the renaming.

Throws:
java.io.IOException