com.jiexplorer.filetask
Class RenameFileTask
java.lang.Object
com.jiexplorer.filetask.FileTask
com.jiexplorer.filetask.CopyFileTask
com.jiexplorer.filetask.RenameFileTask
- All Implemented Interfaces:
- java.lang.Runnable
public class RenameFileTask
- extends CopyFileTask
| 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 |
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)
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