Package com.documentum.fc.client
Interface IDfContentCollection
- All Superinterfaces:
IDfCollection
,IDfTypedObject
-
Field Summary
Fields inherited from interface com.documentum.fc.client.IDfCollection
DF_CLOSED_STATE, DF_INITIAL_STATE, DF_NO_MORE_ROWS_STATE, DF_READY_STATE
-
Method Summary
Modifier and TypeMethodDescriptionint
long
int
Return the size of requested content.Returns the current content buffer.int
long
Return the size of requested content.boolean
void
seek
(int position, int root) Sets the starting position used byIDfCollection.next()
for reading the next buffer of a content collection.void
seekEx
(long position, int root) Sets the starting position used byIDfCollection.next()
for reading the next buffer of a content collection.Methods inherited from interface com.documentum.fc.client.IDfCollection
close, getBytesBuffer, getState, getStateEx, getTypedObject, next
Methods inherited from interface com.documentum.fc.client.IDfTypedObject
appendBoolean, appendDouble, appendId, appendInt, appendString, appendTime, appendValue, dump, enumAttrs, findAttrIndex, findBoolean, findDouble, findId, findInt, findString, findTime, findValue, getAllRepeatingStrings, getAttr, getAttrCount, getAttrDataType, getBoolean, getDouble, getId, getInt, getLong, getObjectId, getObjectSession, getOriginalSession, getRepeatingBoolean, getRepeatingDouble, getRepeatingId, getRepeatingInt, getRepeatingLong, getRepeatingString, getRepeatingTime, getRepeatingValue, getSession, getSessionManager, getString, getTime, getValue, getValueAt, getValueCount, hasAttr, insertBoolean, insertDouble, insertId, insertInt, insertString, insertTime, insertValue, isAttrRepeating, isNull, remove, removeAll, setBoolean, setDouble, setId, setInt, setNull, setRepeatingBoolean, setRepeatingDouble, setRepeatingId, setRepeatingInt, setRepeatingString, setRepeatingTime, setRepeatingValue, setSessionManager, setString, setTime, setValue, truncate
-
Method Details
-
getCurrentBuffer
Returns the current content buffer.- Returns:
- a ByteArrayInputStream containing the data in the current content buffer
- Throws:
DfException
- if a server error occurs
-
seek
Sets the starting position used byIDfCollection.next()
for reading the next buffer of a content collection. This call is only valid on a content collection.- Parameters:
position
- defines the relative byte position where you want to start reading the content. The relative position can be a positive or negative integer.root
- specifies the root location from which to begin the seek operation. The position argument specifies a value relative to this starting root location. Valid values are:IDfSeekRoot.BEGINNING
,IDfSeekRoot.CURRENT
, orIDfSeekRoot.END
.- Throws:
DfException
-
seekEx
Sets the starting position used byIDfCollection.next()
for reading the next buffer of a content collection. This call is only valid on a content collection.- Parameters:
position
- defines the relative byte position where you want to start reading the content. The relative position can be a positive or negative integer.root
- specifies the root location from which to begin the seek operation. The position argument specifies a value relative to this starting root location. Valid values are:IDfSeekRoot.BEGINNING
,IDfSeekRoot.CURRENT
, orIDfSeekRoot.END
.- Throws:
DfException
-
getBufferSize
- Throws:
DfException
-
getCurrentLength
- Throws:
DfException
-
getContentSize
Return the size of requested content. For large file, use getFullContentSize. For extern store, the content size is not corretly filled in until all the content has been read.- Throws:
DfException
-
getFullContentSize
Return the size of requested content. For extern store, the content size is not corretly filled in until all the content has been read.- Throws:
DfException
-
isSeekable
- Throws:
DfException
-
getBytePosition
- Throws:
DfException
-