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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidexecute(JobEntryUnZip jobEntryUnZip, String zipFile, String destinationDirectory) voidDecompress thezipFileand place contents intodestinationDirectory.protected JobEntryUnZipCreate objectJobEntryUnZip.protected JobMetaCreate objectJobMeta.protected voidsetValues(JobEntryUnZip jobEntryUnZip, String zipFile, String destinationDirectory) PopulatejobEntryUnZipwith 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 thezipFileand place contents intodestinationDirectory.- Specified by:
extractin 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
PopulatejobEntryUnZipwith 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.
-