Class InputStreamContentFactory

java.lang.Object
org.kopi.ebics.io.InputStreamContentFactory
All Implemented Interfaces:
Serializable, ContentFactory

public class InputStreamContentFactory extends Object implements ContentFactory
Input stream content factory that delivers the its content as an InputStream This object is serializable in a way to recover interrupted file transfers.
See Also:
  • Constructor Details

    • InputStreamContentFactory

      public InputStreamContentFactory(InputStream input)
      Creates a new ContentFactory from an input stream
      Parameters:
      input - the given input stream.
  • Method Details

    • getContent

      public InputStream getContent() throws IOException
      Description copied from interface: ContentFactory
      Returns 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:
      getContent in interface ContentFactory
      Returns:
      a new data source of the data to be sent.
      Throws:
      IOException