Class CompositeFileErrorHandler
- java.lang.Object
-
- org.pentaho.di.trans.step.errorhandling.CompositeFileErrorHandler
-
- All Implemented Interfaces:
FileErrorHandler
public class CompositeFileErrorHandler extends Object implements FileErrorHandler
-
-
Constructor Summary
Constructors Constructor Description CompositeFileErrorHandler(List<FileErrorHandler> handlers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()This method closes the handler;voidhandleFile(org.apache.commons.vfs2.FileObject file)Tells the handler which file is being processed.voidhandleLineError(long lineNr, String filePart)This method handles an error when processing the line with corresponding lineNr.voidhandleNonAccessibleFile(org.apache.commons.vfs2.FileObject file)This method handles a file that is required, but is not accessible.voidhandleNonExistantFile(org.apache.commons.vfs2.FileObject file)This method handles a file that is required, but does not exist.
-
-
-
Constructor Detail
-
CompositeFileErrorHandler
public CompositeFileErrorHandler(List<FileErrorHandler> handlers)
-
-
Method Detail
-
handleFile
public void handleFile(org.apache.commons.vfs2.FileObject file) throws org.pentaho.di.core.exception.KettleExceptionDescription copied from interface:FileErrorHandlerTells the handler which file is being processed.- Specified by:
handleFilein interfaceFileErrorHandler- Throws:
org.pentaho.di.core.exception.KettleException
-
handleLineError
public void handleLineError(long lineNr, String filePart) throws org.pentaho.di.core.exception.KettleExceptionDescription copied from interface:FileErrorHandlerThis method handles an error when processing the line with corresponding lineNr.- Specified by:
handleLineErrorin interfaceFileErrorHandlerfilePart- allows us to split error according to a filePart- Throws:
org.pentaho.di.core.exception.KettleException
-
close
public void close() throws org.pentaho.di.core.exception.KettleExceptionDescription copied from interface:FileErrorHandlerThis method closes the handler;- Specified by:
closein interfaceFileErrorHandler- Throws:
org.pentaho.di.core.exception.KettleException
-
handleNonExistantFile
public void handleNonExistantFile(org.apache.commons.vfs2.FileObject file) throws org.pentaho.di.core.exception.KettleExceptionDescription copied from interface:FileErrorHandlerThis method handles a file that is required, but does not exist.- Specified by:
handleNonExistantFilein interfaceFileErrorHandler- Throws:
org.pentaho.di.core.exception.KettleException
-
handleNonAccessibleFile
public void handleNonAccessibleFile(org.apache.commons.vfs2.FileObject file) throws org.pentaho.di.core.exception.KettleExceptionDescription copied from interface:FileErrorHandlerThis method handles a file that is required, but is not accessible.- Specified by:
handleNonAccessibleFilein interfaceFileErrorHandler- Throws:
org.pentaho.di.core.exception.KettleException
-
-