Interface IDfContentCollection

All Superinterfaces:
IDfCollection, IDfTypedObject

public interface IDfContentCollection extends IDfCollection
  • Method Details

    • getCurrentBuffer

      ByteArrayInputStream getCurrentBuffer() throws DfException
      Returns the current content buffer.
      Returns:
      a ByteArrayInputStream containing the data in the current content buffer
      Throws:
      DfException - if a server error occurs
    • seek

      void seek(int position, int root) throws DfException
      Sets the starting position used by IDfCollection.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, or IDfSeekRoot.END.
      Throws:
      DfException
    • seekEx

      void seekEx(long position, int root) throws DfException
      Sets the starting position used by IDfCollection.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, or IDfSeekRoot.END.
      Throws:
      DfException
    • getBufferSize

      int getBufferSize() throws DfException
      Throws:
      DfException
    • getCurrentLength

      int getCurrentLength() throws DfException
      Throws:
      DfException
    • getContentSize

      int getContentSize() throws DfException
      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

      long getFullContentSize() throws DfException
      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

      boolean isSeekable() throws DfException
      Throws:
      DfException
    • getBytePosition

      long getBytePosition() throws DfException
      Throws:
      DfException