Package com.appiancorp.suiteapi.content
Class DocumentOutputStream
java.lang.Object
java.io.OutputStream
com.appiancorp.suiteapi.content.DocumentOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
Represents an output stream for a Document object. Writes to the stream are NOT appending. The stream MUST be closed
to persist the written bytes as the Document's content.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract longDocumentOutputStream tracks the number of bytes to this OutputStream, This can then be used to accuratly set the Document sizeMethods inherited from class java.io.OutputStream
close, flush, nullOutputStream, write, write, write
-
Constructor Details
-
DocumentOutputStream
public DocumentOutputStream()
-
-
Method Details
-
getBytesWritten
public abstract long getBytesWritten()DocumentOutputStream tracks the number of bytes to this OutputStream, This can then be used to accuratly set the Document size- Returns:
- the number of bytes written
-