public class ZipServiceKettle extends Object implements ZipService
| Constructor and Description |
|---|
ZipServiceKettle() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
execute(JobEntryUnZip jobEntryUnZip,
String zipFile,
String destinationDirectory) |
void |
extract(String zipFile,
String destinationDirectory)
Decompress the
zipFile and place contents into destinationDirectory. |
protected JobEntryUnZip |
instantiateJobEntryUnZip()
Create object
JobEntryUnZip. |
protected JobMeta |
instantiateJobMeta()
Create object
JobMeta. |
protected void |
setValues(JobEntryUnZip jobEntryUnZip,
String zipFile,
String destinationDirectory)
Populate
jobEntryUnZip with the bare minimum values to run. |
public void extract(String zipFile, String destinationDirectory) throws KettleException
zipFile and place contents into destinationDirectory.extract in interface ZipServicezipFile - path to zip file.destinationDirectory - directory where the contents of the file will be placed.KettleExceptionprotected void execute(JobEntryUnZip jobEntryUnZip, String zipFile, String destinationDirectory)
jobEntryUnZip - instance of object.zipFile - zip file path.destinationDirectory - destination directory to extract contents of zipFile.protected void setValues(JobEntryUnZip jobEntryUnZip, String zipFile, String destinationDirectory)
jobEntryUnZip with the bare minimum values to run.jobEntryUnZip - instance of object.zipFile - zip file path.destinationDirectory - destination directory to extract contents of zipFile.protected JobEntryUnZip instantiateJobEntryUnZip()
JobEntryUnZip.Copyright © 2020 Hitachi Vantara. All rights reserved.