fr.paris.lutece.plugins.archive.service.archive
Class ZipGenerateService

java.lang.Object
  extended by 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

Constructor Summary
ZipGenerateService()
           
 
Method Summary
 void archiveDirectory(String strFolderToArchive, String strArchiveDestination, String strArchiveName)
          The archive methods
 String getKey()
          the key of generate archive service
 String getMimeType()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ZipGenerateService

public ZipGenerateService()
Method Detail

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 archive
strArchiveDestination - path to the destination folder which will store the archive
strArchiveName - 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.