类 ZipFileTarArchive
java.lang.Object
cn.taketoday.buildpack.platform.io.ZipFileTarArchive
- 所有已实现的接口:
TarArchive
Adapter class to convert a ZIP file to a
TarArchive.- 从以下版本开始:
- 4.0
- 作者:
- Phillip Webb, Scott Frederick
-
字段概要
字段从接口继承的字段 cn.taketoday.buildpack.platform.io.TarArchive
NORMALIZED_TIME -
构造器概要
构造器构造器说明ZipFileTarArchive(File zip, Owner owner) Creates an archive from the contents of the givenzip. -
方法概要
修饰符和类型方法说明private voidassertArchiveHasEntries(File file) private org.apache.commons.compress.archivers.tar.TarArchiveEntryconvert(org.apache.commons.compress.archivers.zip.ZipArchiveEntry zipEntry) private voidcopy(org.apache.commons.compress.archivers.zip.ZipArchiveEntry zipEntry, InputStream zip, org.apache.commons.compress.archivers.tar.TarArchiveOutputStream tar) voidwriteTo(OutputStream outputStream) Write the TAR archive to the given output stream.
-
字段详细资料
-
NORMALIZED_MOD_TIME
static final long NORMALIZED_MOD_TIME -
zip
-
owner
-
-
构造器详细资料
-
ZipFileTarArchive
Creates an archive from the contents of the givenzip. Each entry in the archive will be owned by the givenowner.- 参数:
zip- the zip to use as a sourceowner- the owner of the tar entries
-
-
方法详细资料
-
writeTo
从接口复制的说明:TarArchiveWrite the TAR archive to the given output stream.- 指定者:
writeTo在接口中TarArchive- 参数:
outputStream- the output stream to write to- 抛出:
IOException- on IO error
-
assertArchiveHasEntries
-
copy
private void copy(org.apache.commons.compress.archivers.zip.ZipArchiveEntry zipEntry, InputStream zip, org.apache.commons.compress.archivers.tar.TarArchiveOutputStream tar) throws IOException - 抛出:
IOException
-
convert
private org.apache.commons.compress.archivers.tar.TarArchiveEntry convert(org.apache.commons.compress.archivers.zip.ZipArchiveEntry zipEntry)
-