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
ConstructorDescriptionZipFileTarArchive
(File zip, Owner owner) Creates an archive from the contents of the givenzip
. -
Method Summary
Modifier and TypeMethodDescriptionvoid
writeTo
(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:TarArchive
Write the TAR archive to the given output stream.- Specified by:
writeTo
in interfaceTarArchive
- Parameters:
outputStream
- the output stream to write to- Throws:
IOException
- on IO error
-