Class ZipFileTarArchive

java.lang.Object
org.springframework.boot.buildpack.platform.io.ZipFileTarArchive
All Implemented Interfaces:
TarArchive

public class ZipFileTarArchive extends Object implements TarArchive
Adapter class to convert a ZIP file to a TarArchive.
Since:
2.3.0
Author:
Phillip Webb, Scott Frederick
  • Constructor Details

    • 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.
      Parameters:
      zip - the zip to use as a source
      owner - the owner of the tar entries
  • Method Details

    • writeTo

      public void writeTo(OutputStream outputStream) throws IOException
      Description copied from interface: TarArchive
      Write the TAR archive to the given output stream.
      Specified by:
      writeTo in interface TarArchive
      Parameters:
      outputStream - the output stream to write to
      Throws:
      IOException - on IO error