@FunctionalInterface public interface FileMatchContentsProcessorWithContext extends FileMatchProcessorAny
| Modifier and Type | Method and Description |
|---|---|
void |
processMatch(File classpathElt,
String relativePath,
byte[] fileContents)
Process a file with a matching filename or path.
|
void processMatch(File classpathElt, String relativePath, byte[] fileContents) throws IOException
You can get a fully-qualified URL for the file (even for files inside jars) by calling ClasspathUtils.getClasspathResourceURL(classpathElt, relativePath)
classpathElt - The classpath element that contained the match (a jarfile or directory).relativePath - The path of the matching file relative to the classpath element that contained the match.fileContents - A byte array containing the file contents.IOExceptionCopyright © 2018. All rights reserved.