Interface FileMatchProcessor
-
- All Superinterfaces:
FileMatchProcessorAny
- 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 FileMatchProcessor extends FileMatchProcessorAny
The method to run when a file with a matching path is found on the classpath.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
processMatch(String relativePath, InputStream inputStream, long lengthBytes)
Process a matching file.
-
-
-
Method Detail
-
processMatch
void processMatch(String relativePath, InputStream inputStream, long lengthBytes) throws IOException
Process a matching file.- Parameters:
relativePath
- The path of the matching file relative to the classpath element that contained the match.inputStream
- An InputStream (either a FileInputStream or a ZipEntry InputStream) opened on the file. You do not need to close this InputStream before returning, it is closed by the caller.lengthBytes
- The length of the InputStream in bytes.- Throws:
IOException
- If anything goes wrong while processing the file.
-
-