Class RenameUtil

  • All Implemented Interfaces:
    ContextAware

    @Deprecated(since="2022-01-27")
    public class RenameUtil
    extends ContextAwareBase
    Deprecated.
    This internal logback API is not supported by AEM as a Cloud Service.
    Utility class to help solving problems encountered while renaming files.
    • Constructor Detail

      • RenameUtil

        public RenameUtil()
        Deprecated.
    • Method Detail

      • rename

        public void rename​(java.lang.String src,
                           java.lang.String target)
                    throws RolloverFailure
        Deprecated.
        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
      • renameByCopying

        public void renameByCopying​(java.lang.String src,
                                    java.lang.String target)
                             throws RolloverFailure
        Deprecated.
        Throws:
        RolloverFailure
      • toString

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