public class CompositeFileErrorHandler extends Object implements FileErrorHandler
| Constructor and Description |
|---|
CompositeFileErrorHandler(List<FileErrorHandler> handlers) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
This method closes the handler;
|
void |
handleFile(org.apache.commons.vfs2.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.vfs2.FileObject file)
This method handles a file that is required, but is not accessible.
|
void |
handleNonExistantFile(org.apache.commons.vfs2.FileObject file)
This method handles a file that is required, but does not exist.
|
public CompositeFileErrorHandler(List<FileErrorHandler> handlers)
public void handleFile(org.apache.commons.vfs2.FileObject file)
throws KettleException
FileErrorHandlerhandleFile in interface FileErrorHandlerKettleExceptionpublic void handleLineError(long lineNr,
String filePart)
throws KettleException
FileErrorHandlerhandleLineError in interface FileErrorHandlerfilePart - allows us to split error according to a filePartKettleExceptionpublic void close()
throws KettleException
FileErrorHandlerclose in interface FileErrorHandlerKettleExceptionpublic void handleNonExistantFile(org.apache.commons.vfs2.FileObject file)
throws KettleException
FileErrorHandlerhandleNonExistantFile in interface FileErrorHandlerKettleExceptionpublic void handleNonAccessibleFile(org.apache.commons.vfs2.FileObject file)
throws KettleException
FileErrorHandlerhandleNonAccessibleFile in interface FileErrorHandlerKettleExceptionCopyright © 2018 Hitachi Vantara. All rights reserved.