org.pentaho.di.trans.step.errorhandling
Interface FileErrorHandler

All Known Implementing Classes:
AbstractFileErrorHandler, CompositeFileErrorHandler, FileErrorHandlerContentLineNumber, FileErrorHandlerMissingFiles

public interface FileErrorHandler

Author:
Johnny Vanhentenyk

Method Summary
 void close()
          This method closes the handler;
 void handleFile(org.apache.commons.vfs.FileObject file)
          Tells the handler which file is being processed.
 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.
 

Method Detail

handleFile

void handleFile(org.apache.commons.vfs.FileObject file)
                throws KettleException
Tells the handler which file is being processed.

Parameters:
file -
Throws:
KettleException

handleLineError

void handleLineError(long lineNr,
                     String filePart)
                     throws KettleException
This method handles an error when processing the line with corresponding lineNr.

Parameters:
lineNr -
filePart - allows us to split error according to a filePart
Throws:
KettleException

close

void close()
           throws KettleException
This method closes the handler;

Throws:
KettleException

handleNonExistantFile

void handleNonExistantFile(org.apache.commons.vfs.FileObject file)
                           throws KettleException
This method handles a file that is required, but does not exist.

Parameters:
file -
Throws:
KettleException

handleNonAccessibleFile

void handleNonAccessibleFile(org.apache.commons.vfs.FileObject file)
                             throws KettleException
This method handles a file that is required, but is not accessible.

Parameters:
file -
Throws:
KettleException