Interface IGenerateArchiveService

  • All Known Implementing Classes:
    ZipGenerateService

    public interface IGenerateArchiveService
    Interface of generate archive Service
    Author:
    merlinfe
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void archiveDirectory​(java.lang.String strFolderToArchive, java.lang.String strArchiveDestination, java.lang.String strArchiveName)
      The archive methods
      java.lang.String getKey()
      the key of generate archive service
      java.lang.String getMimeType()  
    • Method Detail

      • getKey

        java.lang.String getKey()
        the key of generate archive service
        Returns:
        the key of the genarate service
      • getMimeType

        java.lang.String getMimeType()
        Returns:
        the mime type of the archive
      • archiveDirectory

        void archiveDirectory​(java.lang.String strFolderToArchive,
                              java.lang.String strArchiveDestination,
                              java.lang.String strArchiveName)
                       throws java.io.IOException,
                              java.io.FileNotFoundException
        The archive methods
        Parameters:
        strFolderToArchive - path to the folder to archive
        strArchiveDestination - path to the destination folder which will store the archive
        strArchiveName - the name of the archive
        Throws:
        java.io.IOException - IOException
        java.io.FileNotFoundException - FileNotFoundException