Class ByteArrayContentFactory
java.lang.Object
org.kopi.ebics.io.ByteArrayContentFactory
- All Implemented Interfaces:
Serializable, ContentFactory
Byte array content factory that delivers the file content
as a
ByteArrayInputStream. This object is
serializable in a way to recover interrupted file transfers.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionByteArrayContentFactory(byte[] content) Constructs a newByteArrayContentFactorywith a given byte array content. -
Method Summary
-
Constructor Details
-
ByteArrayContentFactory
public ByteArrayContentFactory(byte[] content) Constructs a newByteArrayContentFactorywith a given byte array content.- Parameters:
content- the byte array content
-
-
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
-
toString
-