Package org.pentaho.di.www.service.zip
Class ZipServiceKettle
java.lang.Object
org.pentaho.di.www.service.zip.ZipServiceKettle
- All Implemented Interfaces:
ZipService
Simple class to handle zip file operations. This class is a wrapper to call Kettle transformation/job entries.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
execute
(JobEntryUnZip jobEntryUnZip, String zipFile, String destinationDirectory) void
Decompress thezipFile
and place contents intodestinationDirectory
.protected JobEntryUnZip
Create objectJobEntryUnZip
.protected JobMeta
Create objectJobMeta
.protected void
setValues
(JobEntryUnZip jobEntryUnZip, String zipFile, String destinationDirectory) PopulatejobEntryUnZip
with the bare minimum values to run.
-
Constructor Details
-
ZipServiceKettle
public ZipServiceKettle()
-
-
Method Details
-
extract
public void extract(String zipFile, String destinationDirectory) throws org.pentaho.di.core.exception.KettleException Decompress thezipFile
and place contents intodestinationDirectory
.- Specified by:
extract
in interfaceZipService
- Parameters:
zipFile
- path to zip file.destinationDirectory
- directory where the contents of the file will be placed.- Throws:
org.pentaho.di.core.exception.KettleException
-
execute
- Parameters:
jobEntryUnZip
- instance of object.zipFile
- zip file path.destinationDirectory
- destination directory to extract contents ofzipFile
.
-
setValues
PopulatejobEntryUnZip
with the bare minimum values to run.- Parameters:
jobEntryUnZip
- instance of object.zipFile
- zip file path.destinationDirectory
- destination directory to extract contents ofzipFile
.
-
instantiateJobEntryUnZip
Create objectJobEntryUnZip
.- Returns:
- instance of object.
-
instantiateJobMeta
Create objectJobMeta
.- Returns:
- instance of object.
-