@FunctionalInterface public interface FileMatchProcessorWithContext
| Modifier and Type | Method and Description |
|---|---|
void |
processMatch(File classpathElement,
String relativePath,
InputStream inputStream,
int lengthBytes)
Process a matching file.
|
void processMatch(File classpathElement, String relativePath, InputStream inputStream, int lengthBytes) throws IOException
classpathElement - The classpath element (directory or zipfile) that contained the match.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.IOExceptionCopyright © 2015. All rights reserved.