Class ArchiveUtil


  • public final class ArchiveUtil
    extends java.lang.Object
    Author:
    merlinfe
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void deleteFile​(ArchiveItem archiveItem)
      delete the file with the archiveItem parameter is provided
      static void deleteFile​(java.lang.String filePath)
      delete the file with the path parameter is provided
      static java.lang.String getFilePath​(ArchiveItem archiveItem)
      get the file path with the archiveItem parameter is provided
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • deleteFile

        public static void deleteFile​(java.lang.String filePath)
                               throws java.lang.Exception
        delete the file with the path parameter is provided
        Parameters:
        filePath - the file path
        Throws:
        java.lang.Exception - Exception
      • getFilePath

        public static java.lang.String getFilePath​(ArchiveItem archiveItem)
        get the file path with the archiveItem parameter is provided
        Parameters:
        archiveItem - archiveItem
        Returns:
        the file path
      • deleteFile

        public static void deleteFile​(ArchiveItem archiveItem)
                               throws java.lang.Exception
        delete the file with the archiveItem parameter is provided
        Parameters:
        archiveItem - the archiveItem
        Throws:
        java.lang.Exception - Exception