Class ContentInputStream

java.lang.Object
java.io.InputStream
com.aquima.interactions.portal.content.ContentInputStream
All Implemented Interfaces:
Closeable, AutoCloseable

public class ContentInputStream extends InputStream
An input stream that obtains data from a content manager. The constructors of this class do not perform any interaction with the content store. As a result, it is possible to instantiate a stream based on non-existing content, without the occurrence of an exception. However, when data is attempted to be read from the stream, an IOException will occur.
Since:
9.3
Author:
G. der Kinderen
  • Constructor Details

    • ContentInputStream

      public ContentInputStream(GUID id, IContentManager contentManager, IUserData user)
      Constructs a new input stream that reads data from a content manager.
      Parameters:
      id - The identifier of the data that is to be read (cannot be null).
      contentManager - The content manager from which to obtain the data (cannot be null).
      user - The user on who's behalf the data is being obtained (cannot be null).
  • Method Details