Package com.helger.commons.io.file
Class LoggingFileOperationCallback
- java.lang.Object
-
- com.helger.commons.io.file.LoggingFileOperationCallback
-
- All Implemented Interfaces:
ICallback,IFileOperationCallback
public class LoggingFileOperationCallback extends Object implements IFileOperationCallback
A logging implementation of theIFileOperationCallbackinterface.- Author:
- Philip Helger
-
-
Constructor Summary
Constructors Constructor Description LoggingFileOperationCallback()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonError(EFileIOOperation eOperation, EFileIOErrorCode eErrorCode, File aFile1, File aFile2, Exception aException)Called upon operation error.voidonSuccess(EFileIOOperation eOperation, File aFile1, File aFile2)Called upon operation success.
-
-
-
Method Detail
-
onSuccess
public void onSuccess(@Nonnull EFileIOOperation eOperation, @Nonnull File aFile1, @Nullable File aFile2)
Description copied from interface:IFileOperationCallbackCalled upon operation success.- Specified by:
onSuccessin interfaceIFileOperationCallback- Parameters:
eOperation- The operation that succeeded.aFile1- The first file worked upon. May not benull.aFile2- The second file worked upon. May benull.
-
onError
public void onError(@Nonnull EFileIOOperation eOperation, @Nonnull EFileIOErrorCode eErrorCode, @Nonnull File aFile1, @Nullable File aFile2, @Nullable Exception aException)
Description copied from interface:IFileOperationCallbackCalled upon operation error.- Specified by:
onErrorin interfaceIFileOperationCallback- Parameters:
eOperation- The operation that failed.eErrorCode- The error code that occurred.aFile1- The first file worked upon. May not benull.aFile2- The second file worked upon. May benull.aException- The exception that occurred. May benull.
-
-