com.filenet.api.core
Interface ContentTransfer
-
- All Superinterfaces:
- ContentElement, DependentObject, EngineObject, RepositoryObject, java.io.Serializable
public interface ContentTransfer extends RepositoryObject, ContentElement, DependentObject
Represents content data that is local to an object store and directly managed by the Content Engine server.Metadata
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description java.io.InputStreamaccessContentStream()Obtains read access, via an input stream, to the content data of thisContentTransferobject.byte[]get_ContentSignature()Returns the value of the ContentSignature property.java.lang.Doubleget_ContentSize()Returns the value of the ContentSize property.java.lang.Stringget_RetrievalName()Returns the value of the RetrievalName property.voidset_RetrievalName(java.lang.String value)Sets the value of the RetrievalName property.voidsetCaptureSource(java.io.InputStream source)Specifies an input stream as the source of content data for thisContentTransferobject.-
Methods inherited from interface com.filenet.api.core.ContentElement
get_ContentType, get_ElementSequenceNumber, set_ContentType
-
Methods inherited from interface com.filenet.api.core.RepositoryObject
getObjectStore
-
Methods inherited from interface com.filenet.api.core.EngineObject
get_ClassDescription, getClassName, getConnection, getProperties, getSuperClasses
-
-
-
-
Method Detail
-
get_RetrievalName
java.lang.String get_RetrievalName()
Returns the value of the RetrievalName property. For more information, see RetrievalName Property.
-
set_RetrievalName
void set_RetrievalName(java.lang.String value)
Sets the value of the RetrievalName property. For more information, see RetrievalName Property.
-
get_ContentSize
java.lang.Double get_ContentSize()
Returns the value of the ContentSize property. For more information, see ContentSize Property.
-
get_ContentSignature
byte[] get_ContentSignature()
Returns the value of the ContentSignature property. For more information, see ContentSignature Property.
-
setCaptureSource
void setCaptureSource(java.io.InputStream source)
Specifies an input stream as the source of content data for thisContentTransferobject. 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 thisContentTransferobject to the ContentElements collection of a document or annotation and called that object'ssavemethod.- Parameters:
source- AnInputStreamobject specifying the source of the content data.- Throws:
E_NULL_OR_INVALID_PARAM_VALUE- if thesourceparameter isnull.
-
accessContentStream
java.io.InputStream accessContentStream()
Obtains read access, via an input stream, to the content data of thisContentTransferobject. 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.- Returns:
- An
InputStreamobject for reading content data. To retrieve content at arbitrary positions within the stream, cast the returnedInputStreamtoExtendedInputStreamand use the methods onExtendedInputStream. - See Also:
- ContentAccessRecordingLevel property, DateContentLastAccessed property
-
-