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 java.lang.Object
- implements IGenerateArchiveService
Implementation of IGenerateArchiveService for create ZIP archive
- Author:
- merlinfe
|
Method Summary |
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()
|
| 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(java.lang.String strFolderToArchive,
java.lang.String strArchiveDestination,
java.lang.String strArchiveName)
throws java.io.IOException,
java.io.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:
java.io.IOException - IOException
java.io.FileNotFoundException - FileNotFoundException
getKey
public java.lang.String getKey()
- the key of generate archive service
- Specified by:
getKey in interface IGenerateArchiveService
- Returns:
- the key of the genarate service
getMimeType
public java.lang.String getMimeType()
-
- Specified by:
getMimeType in interface IGenerateArchiveService
- Returns:
- the mime type of the archive
Copyright © 2011 Mairie de Paris. All Rights Reserved.