* Decompress and parse the stream index. * Called automatically by getObject/getAllObjects if needed.
()
| 89 | * Called automatically by getObject/getAllObjects if needed. |
| 90 | */ |
| 91 | parse(): void { |
| 92 | if (this.index !== null) { |
| 93 | return; // Already parsed |
| 94 | } |
| 95 | |
| 96 | // Decompress stream data |
| 97 | this.decodedData = this.stream.getDecodedData(); |
| 98 | |
| 99 | // Parse the index (N pairs of integers before /First) |
| 100 | this.index = this.parseIndex(); |
| 101 | } |
| 102 | |
| 103 | /** |
| 104 | * Parse the index section of the object stream. |
no test coverage detected