Package com.soklet.archive
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.
-
Method Summary
-
Method Details
-
alterFile
Optional<InputStream> alterFile(Archiver archiver, Path workingDirectory, Path file) throws Exception Executes an operation which (possibly) alters a file.- Parameters:
archiver
- theArchiver
currently runningworkingDirectory
- the temporary directory context in which theArchiver
is workingfile
- 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
-