public interface ContentTransfer extends RepositoryObject, ContentElement, DependentObject
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
accessContentStream()
Obtains read access, via an input stream, to the content data of this
ContentTransfer object. |
byte[] |
get_ContentSignature()
Returns the value of the ContentSignature property.
|
java.lang.Double |
get_ContentSize()
Returns the value of the ContentSize property.
|
java.lang.String |
get_RetrievalName()
Returns the value of the RetrievalName property.
|
void |
set_RetrievalName(java.lang.String value)
Sets the value of the RetrievalName property.
|
void |
setCaptureSource(java.io.InputStream source)
Specifies an input stream as the source of content data for this
ContentTransfer object. |
get_ContentType, get_ElementSequenceNumber, set_ContentType
getObjectStore
get_ClassDescription, getClassName, getConnection, getProperties, getSuperClasses
java.lang.String get_RetrievalName()
void set_RetrievalName(java.lang.String value)
java.lang.Double get_ContentSize()
byte[] get_ContentSignature()
void setCaptureSource(java.io.InputStream source)
ContentTransfer
object.
The Content Engine will not automatically close the stream after access has finished; unless you want the stream to
remain open, your application should close the stream once all of the content data has been read by the
server. The stream can safely be closed after you have added this ContentTransfer
object to the
ContentElements collection of a document or annotation and called that object's save
method.source
- An InputStream
object specifying the source of the content data.E_NULL_OR_INVALID_PARAM_VALUE
- if the source
parameter is null
.java.io.InputStream accessContentStream()
ContentTransfer
object.
The content data is fetched from the server.
The Content Platform Engine will not automatically close the stream after access has finished; unless you want the stream to
remain open, your application should close the stream after it has finished reading the content data.InputStream
object for reading content data. To retrieve content at arbitrary positions within the stream, cast the returned InputStream
to ExtendedInputStream
and use the methods on ExtendedInputStream
.© Copyright IBM Corporation 2006, 2015. All rights reserved.