Class ZipGenerateService
java.lang.Object
fr.paris.lutece.plugins.archive.service.archive.ZipGenerateService
- All Implemented Interfaces:
IGenerateArchiveService
@ApplicationScoped
public class ZipGenerateService
extends Object
implements IGenerateArchiveService
Implementation of IGenerateArchiveService for create ZIP archive
- Author:
- merlinfe
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidarchiveDirectory(String strFolderToArchive, String strArchiveDestination, String strArchiveName) The archive methodsgetKey()the key of generate archive service
-
Constructor Details
-
ZipGenerateService
public ZipGenerateService()
-
-
Method Details
-
archiveDirectory
public void archiveDirectory(String strFolderToArchive, String strArchiveDestination, String strArchiveName) throws IOException, FileNotFoundException The archive methods- Specified by:
archiveDirectoryin interfaceIGenerateArchiveService- Parameters:
strFolderToArchive- path to the folder to archivestrArchiveDestination- path to the destination folder which will store the archivestrArchiveName- the name of the archive- Throws:
IOException-IOExceptionFileNotFoundException-FileNotFoundException
-
getKey
the key of generate archive service- Specified by:
getKeyin interfaceIGenerateArchiveService- Returns:
- the key of the genarate service
-
getMimeType
- Specified by:
getMimeTypein interfaceIGenerateArchiveService- Returns:
- the mime type of the archive
-