org.rhq.helpers.perftest.support.input
Class FileInputStreamProvider

java.lang.Object
  extended by org.rhq.helpers.perftest.support.input.FileInputStreamProvider
All Implemented Interfaces:
InputStreamProvider

public class FileInputStreamProvider
extends Object
implements InputStreamProvider

An InputStreamProvider implementation returning a FileInputStream.

Author:
Lukas Krejci

Constructor Summary
FileInputStreamProvider(File file)
           
 
Method Summary
 InputStream createInputStream()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileInputStreamProvider

public FileInputStreamProvider(File file)
Method Detail

createInputStream

public InputStream createInputStream()
                              throws IOException
Specified by:
createInputStream in interface InputStreamProvider
Returns:
a new input stream corresponding to the same underlying "resource" (e.g. file, URL, ...) each time.
Throws:
IOException


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.