1 | <?php |
||
15 | class Reader extends ReaderAbstract |
||
16 | { |
||
17 | /** @var \ZipArchive */ |
||
18 | protected $zip; |
||
19 | |||
20 | /** @var SheetIterator To iterator over the ODS sheets */ |
||
21 | protected $sheetIterator; |
||
22 | |||
23 | /** |
||
24 | * Returns whether stream wrappers are supported |
||
25 | * |
||
26 | * @return bool |
||
27 | */ |
||
28 | 2 | protected function doesSupportStreamWrapper() |
|
32 | |||
33 | /** |
||
34 | * Opens the file at the given file path to make it ready to be read. |
||
35 | * |
||
36 | * @param string $filePath Path of the file to be read |
||
37 | * @return void |
||
38 | * @throws \Box\Spout\Common\Exception\IOException If the file at the given path or its content cannot be read |
||
39 | * @throws \Box\Spout\Reader\Exception\NoSheetsFoundException If there are no sheets in the file |
||
40 | */ |
||
41 | 30 | protected function openReader($filePath) |
|
56 | |||
57 | /** |
||
58 | * Returns an iterator to iterate over sheets. |
||
59 | * |
||
60 | * @return SheetIterator To iterate over sheets |
||
61 | */ |
||
62 | 30 | protected function getConcreteSheetIterator() |
|
66 | |||
67 | /** |
||
68 | * Closes the reader. To be used after reading the file. |
||
69 | * |
||
70 | * @return void |
||
71 | */ |
||
72 | 27 | protected function closeReader() |
|
78 | } |
||
79 |