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 org.pentaho.di.core.exception.KettleException
FileErrorHandler
handleFile
in interface FileErrorHandler
org.pentaho.di.core.exception.KettleException
public void handleLineError(long lineNr, String filePart) throws org.pentaho.di.core.exception.KettleException
FileErrorHandler
handleLineError
in interface FileErrorHandler
filePart
- allows us to split error according to a filePartorg.pentaho.di.core.exception.KettleException
public void close() throws org.pentaho.di.core.exception.KettleException
FileErrorHandler
close
in interface FileErrorHandler
org.pentaho.di.core.exception.KettleException
public void handleNonExistantFile(org.apache.commons.vfs2.FileObject file) throws org.pentaho.di.core.exception.KettleException
FileErrorHandler
handleNonExistantFile
in interface FileErrorHandler
org.pentaho.di.core.exception.KettleException
public void handleNonAccessibleFile(org.apache.commons.vfs2.FileObject file) throws org.pentaho.di.core.exception.KettleException
FileErrorHandler
handleNonAccessibleFile
in interface FileErrorHandler
org.pentaho.di.core.exception.KettleException