fr.paris.lutece.plugins.archive.service.archive
Class ZipGenerateService
java.lang.Object
fr.paris.lutece.plugins.archive.service.archive.ZipGenerateService
- All Implemented Interfaces:
- IGenerateArchiveService
public class ZipGenerateService
- extends Object
- implements IGenerateArchiveService
Implementation of IGenerateArchiveService for create ZIP archive
- Author:
- merlinfe
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ZipGenerateService
public ZipGenerateService()
archiveDirectory
public void archiveDirectory(String strFolderToArchive,
String strArchiveDestination,
String strArchiveName)
throws IOException,
FileNotFoundException
- The archive methods
- Specified by:
archiveDirectory in interface IGenerateArchiveService
- 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 - IOException
FileNotFoundException - FileNotFoundException
getKey
public String getKey()
- the key of generate archive service
- Specified by:
getKey in interface IGenerateArchiveService
- Returns:
- the key of the genarate service
getMimeType
public String getMimeType()
-
- Specified by:
getMimeType in interface IGenerateArchiveService
- Returns:
- the mime type of the archive
Copyright © 2014 Mairie de Paris. All Rights Reserved.