Interface FileOperation

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface FileOperation
Functional interface for file operations.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Execute the file operation.
  • Method Details

    • execute

      void execute() throws IOException
      Execute the file operation. Implementations should throw IOException for any I/O related failure so callers can retry or report errors.
      Throws:
      IOException - when an I/O error occurs