Class AbstractFileErrorHandler
- java.lang.Object
-
- org.apache.hop.pipeline.transform.errorhandling.AbstractFileErrorHandler
-
- All Implemented Interfaces:
IFileErrorHandler
- Direct Known Subclasses:
FileErrorHandlerContentLineNumber,FileErrorHandlerMissingFiles
public abstract class AbstractFileErrorHandler extends Object implements IFileErrorHandler
-
-
Constructor Summary
Constructors Constructor Description AbstractFileErrorHandler(Date date, String destinationDirectory, String fileExtension, String encoding, BaseTransform baseTransform)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()This method closes the handler;static DateFormatcreateDateFormat()static org.apache.commons.vfs2.FileObjectgetReplayFilename(String destinationDirectory, String processingFilename, String dateString, String extension, Object source)static org.apache.commons.vfs2.FileObjectgetReplayFilename(String destinationDirectory, String processingFilename, Date date, String extension, Object source)voidhandleFile(org.apache.commons.vfs2.FileObject file)Tells the handler which file is being processed.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.hop.pipeline.transform.errorhandling.IFileErrorHandler
handleLineError, handleNonAccessibleFile, handleNonExistantFile
-
-
-
-
Field Detail
-
NO_PARTS
public static final String NO_PARTS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AbstractFileErrorHandler
public AbstractFileErrorHandler(Date date, String destinationDirectory, String fileExtension, String encoding, BaseTransform baseTransform)
-
-
Method Detail
-
createDateFormat
public static DateFormat createDateFormat()
-
getReplayFilename
public static org.apache.commons.vfs2.FileObject getReplayFilename(String destinationDirectory, String processingFilename, String dateString, String extension, Object source) throws HopFileException
- Throws:
HopFileException
-
getReplayFilename
public static org.apache.commons.vfs2.FileObject getReplayFilename(String destinationDirectory, String processingFilename, Date date, String extension, Object source) throws HopFileException
- Throws:
HopFileException
-
close
public void close() throws HopExceptionDescription copied from interface:IFileErrorHandlerThis method closes the handler;- Specified by:
closein interfaceIFileErrorHandler- Throws:
HopException
-
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
-
-