Class ZipFileTarArchive
java.lang.Object
org.springframework.boot.buildpack.platform.io.ZipFileTarArchive
- All Implemented Interfaces:
TarArchive
Adapter class to convert a ZIP file to a
TarArchive.- Since:
- 2.3.0
- Author:
- Phillip Webb, Scott Frederick
-
Field Summary
Fields inherited from interface org.springframework.boot.buildpack.platform.io.TarArchive
NORMALIZED_TIME -
Constructor Summary
ConstructorsConstructorDescriptionZipFileTarArchive(File zip, Owner owner) Creates an archive from the contents of the givenzip. -
Method Summary
Modifier and TypeMethodDescriptionvoidwriteTo(OutputStream outputStream) Write the TAR archive to the given output stream.
-
Constructor Details
-
ZipFileTarArchive
Creates an archive from the contents of the givenzip. Each entry in the archive will be owned by the givenowner.- Parameters:
zip- the zip to use as a sourceowner- the owner of the tar entries
-
-
Method Details
-
writeTo
Description copied from interface:TarArchiveWrite the TAR archive to the given output stream.- Specified by:
writeToin interfaceTarArchive- Parameters:
outputStream- the output stream to write to- Throws:
IOException- on IO error
-