ContentUploadOutputStream
or DocumentOutputStream
instead@Deprecated
public class ContentOutputStream
extends java.io.FileOutputStream
Constructor and Description |
---|
ContentOutputStream(ContentService cs,
java.lang.Long contentId,
Approval approval,
java.lang.String filePath)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Deprecated.
Closes the stream.
|
Approval |
getApproval()
Deprecated.
Returns the approval for the created content object.
|
java.nio.channels.FileChannel |
getChannel()
Deprecated.
|
java.lang.Long |
getContentId()
Deprecated.
Returns the id of the created content object.
|
java.lang.String |
toString()
Deprecated.
|
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
@Deprecated public java.nio.channels.FileChannel getChannel()
getChannel
in class java.io.FileOutputStream
Copyright © 2003-2024 Appian Corporation. All Rights Reserved.