Class ContentInputStream
java.lang.Object
java.io.InputStream
com.aquima.interactions.portal.content.ContentInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
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 Summary
ConstructorsConstructorDescriptionContentInputStream
(GUID id, IContentManager contentManager, IUserData user) Constructs a new input stream that reads data from a content manager. -
Method Summary
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
ContentInputStream
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 benull
).contentManager
- The content manager from which to obtain the data (cannot benull
).user
- The user on whose behalf the data is being obtained (cannot benull
).
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-