Interface IFileErrorHandler
-
- All Known Implementing Classes:
AbstractFileErrorHandler,CompositeFileErrorHandler,FileErrorHandlerContentLineNumber,FileErrorHandlerMissingFiles
public interface IFileErrorHandler
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
handleFile
void handleFile(org.apache.commons.vfs2.FileObject file) throws HopExceptionTells the handler which file is being processed.- Parameters:
file-- Throws:
HopException
-
handleLineError
void handleLineError(long lineNr, String filePart) throws HopExceptionThis method handles an error when processing the line with corresponding lineNr.- Parameters:
lineNr-filePart- allows us to split error according to a filePart- Throws:
HopException
-
close
void close() throws HopExceptionThis method closes the handler;- Throws:
HopException
-
handleNonExistantFile
void handleNonExistantFile(org.apache.commons.vfs2.FileObject file) throws HopExceptionThis method handles a file that is required, but does not exist.- Parameters:
file-- Throws:
HopException
-
handleNonAccessibleFile
void handleNonAccessibleFile(org.apache.commons.vfs2.FileObject file) throws HopExceptionThis method handles a file that is required, but is not accessible.- Parameters:
file-- Throws:
HopException
-
-