| 1 | <?php |
||
| 14 | class Reader extends AbstractReader |
||
| 15 | { |
||
| 16 | /** @var \ZipArchive */ |
||
| 17 | protected $zip; |
||
| 18 | |||
| 19 | /** @var SheetIterator To iterator over the ODS sheets */ |
||
| 20 | protected $sheetIterator; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Returns whether stream wrappers are supported |
||
| 24 | * |
||
| 25 | * @return bool |
||
| 26 | */ |
||
| 27 | 6 | protected function doesSupportStreamWrapper() |
|
| 31 | |||
| 32 | /** |
||
| 33 | * Opens the file at the given file path to make it ready to be read. |
||
| 34 | * |
||
| 35 | * @param string $filePath Path of the file to be read |
||
| 36 | * @return void |
||
| 37 | * @throws \Box\Spout\Common\Exception\IOException If the file at the given path or its content cannot be read |
||
| 38 | * @throws \Box\Spout\Reader\Exception\NoSheetsFoundException If there are no sheets in the file |
||
| 39 | */ |
||
| 40 | 81 | protected function openReader($filePath) |
|
| 50 | |||
| 51 | /** |
||
| 52 | * Returns an iterator to iterate over sheets. |
||
| 53 | * |
||
| 54 | * @return SheetIterator To iterate over sheets |
||
| 55 | */ |
||
| 56 | 81 | public function getConcreteSheetIterator() |
|
| 57 | { |
||
| 58 | 81 | return $this->sheetIterator; |
|
| 59 | 3 | } |
|
| 60 | |||
| 61 | /** |
||
| 62 | * Closes the reader. To be used after reading the file. |
||
| 63 | * |
||
| 64 | * @return void |
||
| 65 | */ |
||
| 66 | 72 | protected function closeReader() |
|
| 72 | } |
||
| 73 |