public class ContentOutputStream
extends java.io.FileOutputStream
Constructor and Description |
---|
ContentOutputStream(ContentService cs,
java.lang.Long contentId,
Approval approval,
java.lang.String filePath) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the stream.
|
Approval |
getApproval()
Returns the approval for the created content object.
|
java.lang.Long |
getContentId()
Returns the id of the created content object.
|
java.lang.String |
toString() |
public ContentOutputStream(ContentService cs, java.lang.Long contentId, Approval approval, java.lang.String filePath) throws java.io.FileNotFoundException
java.io.FileNotFoundException
public void close() throws java.io.IOException
size field
).
Users of this class should make sure to always call close() and not rely on the finalizer.close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.FileOutputStream
java.io.IOException
public java.lang.Long getContentId()
public Approval getApproval()
ContentService.createApproval(Content, Integer)
.public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.