com.jiexplorer.filetask
Class RenameFileTask

java.lang.Object
  extended by com.jiexplorer.filetask.FileTask
      extended by com.jiexplorer.filetask.CopyFileTask
          extended by com.jiexplorer.filetask.RenameFileTask
All Implemented Interfaces:
java.lang.Runnable

public class RenameFileTask
extends CopyFileTask


Field Summary
 
Fields inherited from class com.jiexplorer.filetask.FileTask
listener, operator, performed
 
Constructor Summary
RenameFileTask(java.io.File from, java.io.File to)
           
RenameFileTask(java.util.List<java.io.File> list, java.io.File to)
           
 
Method Summary
 void byDate()
           
 void bySequence()
           
 java.lang.String getFormatString()
           
 java.lang.String getOperationName()
           
 boolean isBySequence()
           
protected  boolean moveFile(java.io.File from, java.io.File to)
           
 void run()
           
 void setBySequence(boolean bySequence)
           
 void setFormatString(java.lang.String format)
           
 void setOrderIndex(int orderIndex)
           
 void setPadding(int padding)
           
 void setPrefix(java.lang.String prefix)
           
 void setRadix(int radix)
           
 void setStartAt(java.lang.String startAt)
           
 
Methods inherited from class com.jiexplorer.filetask.CopyFileTask
copyFile
 
Methods inherited from class com.jiexplorer.filetask.FileTask
close, close, confirmAllOverride, confirmDelete, confirmOverride, getDestination, getDestinationFolder, getFileName, getFileOutputstream, getFileSize, getOperator, getOverallProgress, getProgressPercent, getProgressString, getSource, getSourceFilesList, getTotal, incrementProgress, isCancelled, isDone, isResponceAllNo, isResponceAllYes, setCancelled, setDestination, setDestinationFolder, setListener, setOverallProgress, setResponceAllNo, setResponceAllYes, setSource, setSourceFilesList, setTotal, wasSuccessful
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenameFileTask

public RenameFileTask(java.io.File from,
                      java.io.File to)

RenameFileTask

public RenameFileTask(java.util.List<java.io.File> list,
                      java.io.File to)
Method Detail

getOperationName

public java.lang.String getOperationName()
Overrides:
getOperationName in class CopyFileTask

run

public void run()
Specified by:
run in interface java.lang.Runnable
Overrides:
run in class CopyFileTask

bySequence

public void bySequence()

byDate

public void byDate()

moveFile

protected boolean moveFile(java.io.File from,
                           java.io.File to)

isBySequence

public final boolean isBySequence()
Returns:
the bySequence

setBySequence

public final void setBySequence(boolean bySequence)
Parameters:
bySequence - the bySequence to set

setOrderIndex

public final void setOrderIndex(int orderIndex)
Parameters:
orderIndex - the orderIndex to set

setPadding

public final void setPadding(int padding)
Parameters:
padding - the padding to set

setPrefix

public final void setPrefix(java.lang.String prefix)
Parameters:
prefix - the prefix to set

setRadix

public final void setRadix(int radix)
Parameters:
radix - the radix to set

setStartAt

public final void setStartAt(java.lang.String startAt)
Parameters:
startAt - the startAt to set

getFormatString

public final java.lang.String getFormatString()
Returns:
the format

setFormatString

public final void setFormatString(java.lang.String format)
Parameters:
format - the format to set