()
| 17 | } |
| 18 | |
| 19 | public read(): ZipEntry[] { |
| 20 | const entries: ZipEntry[] = []; |
| 21 | while (true) { |
| 22 | const e: ZipEntry | null = this._readEntry(); |
| 23 | if (!e) { |
| 24 | break; |
| 25 | } |
| 26 | entries.push(e); |
| 27 | } |
| 28 | return entries; |
| 29 | } |
| 30 | |
| 31 | private _readEntry(): ZipEntry | null { |
| 32 | const readable: IReadable = this._readable; |