public class ZipFileResource extends Object implements ZipResource
ZipFile 资源包装| 构造器和说明 |
|---|
ZipFileResource(ZipFile zipFile)
构造
|
public void read(Consumer<ZipEntry> consumer, int maxSizeDiff)
ZipResourceZipEntryread 在接口中 ZipResourceconsumer - ZipEntry处理器maxSizeDiff - 检查ZipBomb文件差异倍数,-1表示不检查ZipBombpublic InputStream get(String path)
ZipResourceget 在接口中 ZipResourcepath - 路径public InputStream get(ZipEntry entry)
ZipResourceZipEntry对应的文件流get 在接口中 ZipResourceentry - ZipEntrypublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2023. All rights reserved.