zipFile.get(name)


返回一个懒加载的、文件支持的 ZipEntry,用于 name。这里不会从磁盘读取任何内容,也不会缓冲内容:返回的条目在每次访问时直接从文件中读取(对于 zipEntry.content(),还会解压其成员),而 ZipFile 不会保留任何成员内容。只有在这个 ZipFile 打开时,条目才有效。稍后读取其内容可能会抛出 ERR_ZIP_ENTRY_TOO_LARGE,如果成员太大而无法放入单一缓冲区;可以改用 zipEntry.contentIterator()(或 zipFile.stream())。如果归档中没有名为 name 的条目,会抛出 ERR_ZIP_ENTRY_NOT_FOUND。

🌐 Returns a lazy, file-backed ZipEntry for name. Nothing is read from disk here and no content is buffered: the returned entry reads (and, for zipEntry.content(), decompresses) its member straight from the file on each access, and the ZipFile retains no member content. The entry is valid only while this ZipFile is open. Reading its content later may throw ERR_ZIP_ENTRY_TOO_LARGE if the member is too large to hold in a single buffer; use zipEntry.contentIterator() (or zipFile.stream()) instead. Throws ERR_ZIP_ENTRY_NOT_FOUND if the archive has no entry named name.