public class RenameUtil extends ContextAwareBase
context
Constructor and Description |
---|
RenameUtil() |
Modifier and Type | Method and Description |
---|---|
void |
rename(java.lang.String from,
java.lang.String to)
A robust file renaming method which in case of failure falls back to
renaming by copying.
|
void |
renameByCopying(java.lang.String from,
java.lang.String to) |
java.lang.String |
toString() |
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getDeclaredOrigin, getStatusManager, setContext
public void rename(java.lang.String from, java.lang.String to) throws RolloverFailure
from
- to
- RolloverFailure
public void renameByCopying(java.lang.String from, java.lang.String to) throws RolloverFailure
RolloverFailure
public java.lang.String toString()
toString
in class java.lang.Object