Package com.helger.io.file
Interface IFileOperationCallback
- All Superinterfaces:
com.helger.base.callback.ICallback
- All Known Implementing Classes:
LoggingFileOperationCallback
public interface IFileOperationCallback
extends com.helger.base.callback.ICallback
Callback interface for
FileOperationManager.- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonError(@NonNull EFileIOOperation eOperation, @NonNull EFileIOErrorCode eErrorCode, @NonNull File aFile1, @Nullable File aFile2, @Nullable Exception aException) Called upon operation error.default voidonSuccess(@NonNull EFileIOOperation eOperation, @NonNull File aFile1, @Nullable File aFile2) Called upon operation success.
-
Method Details
-
onSuccess
default void onSuccess(@NonNull EFileIOOperation eOperation, @NonNull File aFile1, @Nullable File aFile2) Called upon operation success.- Parameters:
eOperation- The operation that succeeded.aFile1- The first file worked upon. May not benull.aFile2- The second file worked upon. May benull.
-
onError
default void onError(@NonNull EFileIOOperation eOperation, @NonNull EFileIOErrorCode eErrorCode, @NonNull File aFile1, @Nullable File aFile2, @Nullable Exception aException) Called upon operation error.- 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.
-