类 ZipFileTarArchive

java.lang.Object
cn.taketoday.buildpack.platform.io.ZipFileTarArchive
所有已实现的接口:
TarArchive

public class ZipFileTarArchive extends Object implements TarArchive
Adapter class to convert a ZIP file to a TarArchive.
从以下版本开始:
4.0
作者:
Phillip Webb, Scott Frederick
  • 字段详细资料

    • NORMALIZED_MOD_TIME

      static final long NORMALIZED_MOD_TIME
    • zip

      private final File zip
    • owner

      private final Owner owner
  • 构造器详细资料

    • ZipFileTarArchive

      public ZipFileTarArchive(File zip, Owner owner)
      Creates an archive from the contents of the given zip. Each entry in the archive will be owned by the given owner.
      参数:
      zip - the zip to use as a source
      owner - the owner of the tar entries
  • 方法详细资料

    • writeTo

      public void writeTo(OutputStream outputStream) throws IOException
      从接口复制的说明: TarArchive
      Write the TAR archive to the given output stream.
      指定者:
      writeTo 在接口中 TarArchive
      参数:
      outputStream - the output stream to write to
      抛出:
      IOException - on IO error
    • assertArchiveHasEntries

      private void assertArchiveHasEntries(File file)
    • 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)