hudson.plugins.analysis.util
Interface FileInputStreamFactory


public interface FileInputStreamFactory

Factory to create an InputStream from an absolute filename.

Author:
Ulli Hafner

Method Summary
 InputStream create(String fileName)
          Creates an InputStream from the specified filename.
 String[] find(File root, String pattern)
          Returns all file names that match the specified pattern.
 

Method Detail

create

InputStream create(String fileName)
                   throws FileNotFoundException
Creates an InputStream from the specified filename.

Parameters:
fileName - the file name
Returns:
the input stream
Throws:
FileNotFoundException - if the file could not be found

find

String[] find(File root,
              String pattern)
Returns all file names that match the specified pattern.

Parameters:
root - root directory to start the search from
pattern - the Ant FileSet pattern to search for
Returns:
the found file names


Copyright © 2004-2012 Hudson. All Rights Reserved.