com.cedarsoft.provider
Class InputStreamFromFileProvider

java.lang.Object
  extended by com.cedarsoft.provider.InputStreamFromFileProvider
All Implemented Interfaces:
Provider<java.io.InputStream,java.io.IOException>

public class InputStreamFromFileProvider
extends java.lang.Object
implements Provider<java.io.InputStream,java.io.IOException>

A provider that returns an input stream using a file


Constructor Summary
InputStreamFromFileProvider(java.io.File file)
           
 
Method Summary
 java.lang.String getDescription()
           
 java.io.InputStream provide()
          Provides the object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputStreamFromFileProvider

public InputStreamFromFileProvider(@NotNull
                                   java.io.File file)
Method Detail

provide

@NotNull
public java.io.InputStream provide()
                            throws java.io.IOException
Description copied from interface: Provider
Provides the object

Specified by:
provide in interface Provider<java.io.InputStream,java.io.IOException>
Returns:
the object that is provided
Throws:
java.io.IOException

getDescription

@NotNull
public java.lang.String getDescription()
Specified by:
getDescription in interface Provider<java.io.InputStream,java.io.IOException>


Copyright © 2009 cedarsoft GmbH. All Rights Reserved.