Class ZipGenerateService
- java.lang.Object
-
- fr.paris.lutece.plugins.archive.service.archive.ZipGenerateService
-
- All Implemented Interfaces:
IGenerateArchiveService
public class ZipGenerateService extends java.lang.Object implements IGenerateArchiveService
Implementation of IGenerateArchiveService for create ZIP archive- Author:
- merlinfe
-
-
Constructor Summary
Constructors Constructor Description ZipGenerateService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidarchiveDirectory(java.lang.String strFolderToArchive, java.lang.String strArchiveDestination, java.lang.String strArchiveName)The archive methodsjava.lang.StringgetKey()the key of generate archive servicejava.lang.StringgetMimeType()
-
-
-
Method Detail
-
archiveDirectory
public void archiveDirectory(java.lang.String strFolderToArchive, java.lang.String strArchiveDestination, java.lang.String strArchiveName) throws java.io.IOException, java.io.FileNotFoundExceptionThe 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:
java.io.IOException-IOExceptionjava.io.FileNotFoundException-FileNotFoundException
-
getKey
public java.lang.String getKey()
the key of generate archive service- Specified by:
getKeyin interfaceIGenerateArchiveService- Returns:
- the key of the genarate service
-
getMimeType
public java.lang.String getMimeType()
- Specified by:
getMimeTypein interfaceIGenerateArchiveService- Returns:
- the mime type of the archive
-
-