
org.dstadler.commons.zip.OutputHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of commons-dost Show documentation
Show all versions of commons-dost Show documentation
Common utilities I find useful in many of my projects.
package org.dstadler.commons.zip;
import java.io.File;
import java.io.IOException;
import java.io.InputStream;
/**
* Interface for handling output of searches for matching files.
*/
public interface OutputHandler {
/**
* Reports a file that matched.
*
* @param file The filename associated with the stream
* @param content An InputStream which allows to access the
* content of the file.
* @return content The content of the found file.
* @throws IOException If the file cannot be read.
*/
boolean found(File file, InputStream content) throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy