public function getContentStream(ObjectIdInterface $docId, $streamId = null, $offset = null, $length = null)
    {
        return $this->getBinding()->getObjectService()->getContentStream(
            $this->getRepositoryId(),
            $docId->getId(),
            $streamId,
            $offset,
            $length
        );
    }
public function getContentStream(ObjectIdInterface $docId, $streamId = null, $offset = null, $length = null)
    {
        return $this->getBinding()->getObjectService()->getContentStream(
            $this->getRepositoryId(),
            $docId->getId(),
            $streamId,
            $offset,
            $length
        );
    }
public function getContentStream ( ObjectIdInterface $ docId , $ streamId = null , $ offset = null , $ length = null ) { return $ this -> getBinding ( ) -> getObjectService ( ) -> getContentStream ( $ this -> getRepositoryId ( ) , $ docId -> getId ( ) , $ streamId , $ offset , $ length ) ; }
Retrieves the main content stream of a document.

@param ObjectIdInterface $docId the ID of the document
@param string|null $streamId the stream ID
@param integer|null $offset the offset of the stream or <code>null</code> to read the stream from the beginning
@param integer|null $length the maximum length of the stream or <code>null</code> to read to the end of the
stream
@return StreamInterface|null the content stream or <code>null</code> if the
document has no content stream
Retrieves the main content stream of a document .