Interface FileMatchContentsProcessor

  • 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 FileMatchContentsProcessor
    extends FileMatchProcessorAny
    The method to run when a file with a matching path is found on the classpath.
    • Method Detail

      • processMatch

        void processMatch​(String relativePath,
                          byte[] fileContents)
                   throws IOException
        Process a matching file.
        Parameters:
        relativePath - The path of the matching file relative to the classpath element that contained the match.
        fileContents - A byte array containing the file contents.
        Throws:
        IOException - If anything goes wrong while processing the file.