コード例 #1
0
 /**
  * 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;
 }
コード例 #2
0
 public function getSize()
 {
     return $this->_dataSource->getSize();
 }