Package com.appiancorp.suiteapi.content
Class ContentUploadOutputStream
java.lang.Object
java.io.OutputStream
com.appiancorp.suiteapi.content.ContentUploadOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
Represents a document and its output stream to which the document's content should be written during an
upload. The document's data should be written to the returned output stream and the upload will be
completed by calling
close()
. Invoking the stream's close method will calculate
the size of the data written to the stream and save it as metadata for the document.-
Constructor Summary
-
Method Summary
Methods inherited from class java.io.OutputStream
flush, nullOutputStream, write, write, write
-
Constructor Details
-
ContentUploadOutputStream
public ContentUploadOutputStream()
-
-
Method Details
-
getContentId
Returns the id of the created content object. -
getApproval
Returns the approval for the created content object. SeeContentService.createApproval(Content, Integer)
. -
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-