org.pentaho.di.trans.step.errorhandling
Class FileErrorHandlerMissingFiles

java.lang.Object
  extended by org.pentaho.di.trans.step.errorhandling.AbstractFileErrorHandler
      extended by org.pentaho.di.trans.step.errorhandling.FileErrorHandlerMissingFiles
All Implemented Interfaces:
FileErrorHandler

public class FileErrorHandlerMissingFiles
extends AbstractFileErrorHandler


Field Summary
static String THIS_FILE_DOES_NOT_EXIST
           
static String THIS_FILE_WAS_NOT_ACCESSIBLE
           
 
Fields inherited from class org.pentaho.di.trans.step.errorhandling.AbstractFileErrorHandler
NO_PARTS
 
Constructor Summary
FileErrorHandlerMissingFiles(Date date, String destinationDirectory, String fileExtension, String encoding, BaseStep baseStep)
           
 
Method Summary
 void handleLineError(long lineNr, String filePart)
          This method handles an error when processing the line with corresponding lineNr.
 void handleNonAccessibleFile(org.apache.commons.vfs.FileObject file)
          This method handles a file that is required, but is not accessible.
 void handleNonExistantFile(org.apache.commons.vfs.FileObject file)
          This method handles a file that is required, but does not exist.
 
Methods inherited from class org.pentaho.di.trans.step.errorhandling.AbstractFileErrorHandler
close, createDateFormat, getReplayFilename, getReplayFilename, handleFile
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THIS_FILE_DOES_NOT_EXIST

public static final String THIS_FILE_DOES_NOT_EXIST

THIS_FILE_WAS_NOT_ACCESSIBLE

public static final String THIS_FILE_WAS_NOT_ACCESSIBLE
Constructor Detail

FileErrorHandlerMissingFiles

public FileErrorHandlerMissingFiles(Date date,
                                    String destinationDirectory,
                                    String fileExtension,
                                    String encoding,
                                    BaseStep baseStep)
Method Detail

handleLineError

public void handleLineError(long lineNr,
                            String filePart)
Description copied from interface: FileErrorHandler
This method handles an error when processing the line with corresponding lineNr.

filePart - allows us to split error according to a filePart

handleNonExistantFile

public void handleNonExistantFile(org.apache.commons.vfs.FileObject file)
                           throws KettleException
Description copied from interface: FileErrorHandler
This method handles a file that is required, but does not exist.

Throws:
KettleException

handleNonAccessibleFile

public void handleNonAccessibleFile(org.apache.commons.vfs.FileObject file)
                             throws KettleException
Description copied from interface: FileErrorHandler
This method handles a file that is required, but is not accessible.

Throws:
KettleException