Class ZipServiceKettle

java.lang.Object
org.pentaho.di.www.service.zip.ZipServiceKettle
All Implemented Interfaces:
ZipService

public class ZipServiceKettle extends Object implements ZipService
Simple class to handle zip file operations. This class is a wrapper to call Kettle transformation/job entries.
  • Constructor Details

    • ZipServiceKettle

      public ZipServiceKettle()
  • Method Details

    • extract

      public void extract(String zipFile, String destinationDirectory) throws org.pentaho.di.core.exception.KettleException
      Decompress the zipFile and place contents into destinationDirectory.
      Specified by:
      extract in interface ZipService
      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

      protected void execute(JobEntryUnZip jobEntryUnZip, String zipFile, String destinationDirectory)
      Parameters:
      jobEntryUnZip - instance of object.
      zipFile - zip file path.
      destinationDirectory - destination directory to extract contents of zipFile.
    • setValues

      protected void setValues(JobEntryUnZip jobEntryUnZip, String zipFile, String destinationDirectory)
      Populate jobEntryUnZip with the bare minimum values to run.
      Parameters:
      jobEntryUnZip - instance of object.
      zipFile - zip file path.
      destinationDirectory - destination directory to extract contents of zipFile.
    • instantiateJobEntryUnZip

      protected JobEntryUnZip instantiateJobEntryUnZip()
      Create object JobEntryUnZip.
      Returns:
      instance of object.
    • instantiateJobMeta

      protected JobMeta instantiateJobMeta()
      Create object JobMeta.
      Returns:
      instance of object.