Class CompositeFileErrorHandler
- java.lang.Object
-
- org.apache.hop.pipeline.transform.errorhandling.CompositeFileErrorHandler
-
- All Implemented Interfaces:
IFileErrorHandler
public class CompositeFileErrorHandler extends Object implements IFileErrorHandler
-
-
Constructor Summary
Constructors Constructor Description CompositeFileErrorHandler(List<IFileErrorHandler> 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<IFileErrorHandler> handlers)
-
-
Method Detail
-
handleFile
public void handleFile(org.apache.commons.vfs2.FileObject file) throws HopExceptionDescription copied from interface:IFileErrorHandlerTells the handler which file is being processed.- Specified by:
handleFilein interfaceIFileErrorHandler- Throws:
HopException
-
handleLineError
public void handleLineError(long lineNr, String filePart) throws HopExceptionDescription copied from interface:IFileErrorHandlerThis method handles an error when processing the line with corresponding lineNr.- Specified by:
handleLineErrorin interfaceIFileErrorHandlerfilePart- allows us to split error according to a filePart- Throws:
HopException
-
close
public void close() throws HopExceptionDescription copied from interface:IFileErrorHandlerThis method closes the handler;- Specified by:
closein interfaceIFileErrorHandler- Throws:
HopException
-
handleNonExistantFile
public void handleNonExistantFile(org.apache.commons.vfs2.FileObject file) throws HopExceptionDescription copied from interface:IFileErrorHandlerThis method handles a file that is required, but does not exist.- Specified by:
handleNonExistantFilein interfaceIFileErrorHandler- Throws:
HopException
-
handleNonAccessibleFile
public void handleNonAccessibleFile(org.apache.commons.vfs2.FileObject file) throws HopExceptionDescription copied from interface:IFileErrorHandlerThis method handles a file that is required, but is not accessible.- Specified by:
handleNonAccessibleFilein interfaceIFileErrorHandler- Throws:
HopException
-
-