Interface Archiver.FileAlterationOperation

Enclosing class:
Archiver
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 static interface Archiver.FileAlterationOperation
  • Method Summary

    Modifier and Type
    Method
    Description
    alterFile(Archiver archiver, Path workingDirectory, Path file)
    Executes an operation which (possibly) alters a file.
  • Method Details

    • alterFile

      Optional<InputStream> alterFile(Archiver archiver, Path workingDirectory, Path file) throws Exception
      Executes an operation which (possibly) alters a file.
      Parameters:
      archiver - the Archiver currently running
      workingDirectory - the temporary directory context in which the Archiver is working
      file - the file to (possibly) alter
      Returns:
      bytes for the altered file, or empty if the file does not need to be altered
      Throws:
      Exception - if an error occurs while altering the file