Class FileContentFactory
java.lang.Object
org.kopi.ebics.io.FileContentFactory
- All Implemented Interfaces:
Serializable, ContentFactory
File content factory that delivers the file content
as a
FileInputStream. This object is
serializable in a way to recover interrupted file transfers.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFileContentFactory(File input) Constructs a newFileContentFactorywith a given input file -
Method Summary
Modifier and TypeMethodDescriptionReturns a new data source of the data to be sent.
-
Constructor Details
-
FileContentFactory
Constructs a newFileContentFactorywith a given input file- Parameters:
input- the input file
-
-
Method Details
-
getContent
Description copied from interface:ContentFactoryReturns a new data source of the data to be sent. The instance must ensure that the returned stream will deliver the identical data during the lifetime of this instance. Nevertheless, how often the method will be called.- Specified by:
getContentin interfaceContentFactory- Returns:
- a new data source of the data to be sent.
- Throws:
IOException
-