hudson.plugins.pmd.util.FileInputStreamFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pmd Show documentation
Show all versions of pmd Show documentation
This plug-in generates the trend report for PMD, an
open source static code analysis program.
package hudson.plugins.pmd.util;
import java.io.FileNotFoundException;
import java.io.InputStream;
/**
* Factory to create an {@link InputStream} from an absolute filename.
*
* @author Ulli Hafner
*/
public interface FileInputStreamFactory {
/**
* Creates an {@link InputStream} from the specified filename.
*
* @param fileName
* the file name
* @return the input stream
* @throws FileNotFoundException
* if the file could not be found
*/
InputStream create(String fileName) throws FileNotFoundException;
}