Package com.appiancorp.suiteapi.content
Class ContentOutputStream
java.lang.Object
java.io.OutputStream
java.io.FileOutputStream
com.appiancorp.suiteapi.content.ContentOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
Deprecated.
This class has been deprecated and support for it will be removed in a future release
-
Constructor Summary
ConstructorDescriptionContentOutputStream
(ContentService cs, Long contentId, Approval approval, String filePath) Deprecated. -
Method Summary
Methods inherited from class java.io.FileOutputStream
getFD, write, write, write
Methods inherited from class java.io.OutputStream
flush, nullOutputStream
-
Constructor Details
-
ContentOutputStream
public ContentOutputStream(ContentService cs, Long contentId, Approval approval, String filePath) throws FileNotFoundException Deprecated.- Throws:
FileNotFoundException
-
-
Method Details
-
close
Deprecated.Closes the stream. After closing, the size of the data written to the stream is calculated and saved as metadata on the content object (can subsequently be retrieved from thesize field
). Users of this class should make sure to always call close() and not rely on the finalizer.- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classFileOutputStream
- Throws:
IOException
-
getContentId
Deprecated.Returns the id of the created content object. -
getApproval
Deprecated.Returns the approval for the created content object. SeeContentService.createApproval(Content, Integer)
. -
toString
Deprecated. -
getChannel
Deprecated.This method is deprecated and support for it will be removed in a future release.- Overrides:
getChannel
in classFileOutputStream
-
ContentUploadOutputStream
orDocumentOutputStream
instead