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
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.springframework.boot.buildpack.platform.io.TarArchive
TarArchive.Compression
-
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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.springframework.boot.buildpack.platform.io.TarArchive
getCompression
-
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
-