Class RenameUtil

  • All Implemented Interfaces:
    ContextAware

    public class RenameUtil
    extends ContextAwareBase
    Utility class to help solving problems encountered while renaming files.
    • Constructor Detail

      • RenameUtil

        public RenameUtil()
    • Method Detail

      • rename

        public void rename​(java.lang.String src,
                           java.lang.String target)
                    throws RolloverFailure
        A relatively robust file renaming method which in case of failure due to src and target being on different volumes, falls back onto renaming by copying.
        Parameters:
        src -
        target -
        Throws:
        RolloverFailure
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object