/**
  * Object constructor.
  *
  * Verifies that the data source has been properly initialized.
  *
  * @param \ZendPdf\BinaryParser\DataSource\AbstractDataSource $dataSource
  * @throws \ZendPdf\Exception\ExceptionInterface
  */
 public function __construct(DataSource\AbstractDataSource $dataSource)
 {
     if ($dataSource->getSize() == 0) {
         throw new Exception\BinaryParserException('The data source has not been properly initialized');
     }
     $this->_dataSource = $dataSource;
 }
 public function getSize()
 {
     return $this->_dataSource->getSize();
 }