fr.paris.lutece.plugins.dila.service.impl
Class DilaExtractService

java.lang.Object
  extended by fr.paris.lutece.plugins.dila.service.impl.DilaExtractService
All Implemented Interfaces:
IDilaExtractService

public class DilaExtractService
extends Object
implements IDilaExtractService

Implementation of IDilaExtractService


Constructor Summary
DilaExtractService()
           
 
Method Summary
 void extract(File file, String strArchiveName, String strDirPathExtract, String strDirPathCopy)
          Extract file
 void extractAll()
          Extract all files
 boolean isValidParameters(String strArchivesDirPath)
          Check if parameter are valid
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DilaExtractService

public DilaExtractService()
Method Detail

extractAll

public void extractAll()
                throws DilaException
Description copied from interface: IDilaExtractService
Extract all files

Specified by:
extractAll in interface IDilaExtractService
Throws:
DilaException - Daemon exception

extract

public void extract(File file,
                    String strArchiveName,
                    String strDirPathExtract,
                    String strDirPathCopy)
             throws Exception
Description copied from interface: IDilaExtractService
Extract file

Specified by:
extract in interface IDilaExtractService
Parameters:
file - file to extract
strArchiveName - the archive name
strDirPathExtract - the dir path
strDirPathCopy - the dir copy path
Throws:
Exception - occurs during treatment

isValidParameters

public boolean isValidParameters(String strArchivesDirPath)
Description copied from interface: IDilaExtractService
Check if parameter are valid

Specified by:
isValidParameters in interface IDilaExtractService
Parameters:
strArchivesDirPath - the dir to check
Returns:
true if parameters are valid; else false


Copyright © 2014 Mairie de Paris. All Rights Reserved.