public class DilaExtractService extends Object implements IDilaExtractService
IDilaExtractService
Constructor and Description |
---|
DilaExtractService() |
Modifier and Type | Method and Description |
---|---|
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
|
public void extractAll() throws DilaException
IDilaExtractService
extractAll
in interface IDilaExtractService
DilaException
- Daemon exceptionpublic void extract(File file, String strArchiveName, String strDirPathExtract, String strDirPathCopy) throws Exception
IDilaExtractService
extract
in interface IDilaExtractService
file
- file to extractstrArchiveName
- the archive namestrDirPathExtract
- the dir pathstrDirPathCopy
- the dir copy pathException
- occurs during treatmentpublic boolean isValidParameters(String strArchivesDirPath)
IDilaExtractService
isValidParameters
in interface IDilaExtractService
strArchivesDirPath
- the dir to checktrue
if parameters are valid; else
false
Copyright © 2017 City of Paris. All rights reserved.