Package io.quarkus.deployment.pkg.jar
Class ZipFileSystemArchiveCreator
java.lang.Object
io.quarkus.deployment.pkg.jar.ZipFileSystemArchiveCreator
- All Implemented Interfaces:
ArchiveCreator,AutoCloseable
-
Field Summary
Fields inherited from interface io.quarkus.deployment.pkg.jar.ArchiveCreator
CURRENT_APPLICATION, UNKNOWN_SOURCE -
Constructor Summary
ConstructorsConstructorDescriptionZipFileSystemArchiveCreator(Path archivePath, boolean compressed, Instant entryTimestamp) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDirectory(String directory, String source) voidFirst-write wins, subsequent additions of the same file will generate a warning.voidFirst-write wins, subsequent additions of the same file will generate a warning.voidFirst-write wins, subsequent additions of the same file will generate a warning.voidaddFileIfNotExists(byte[] bytes, String target, String source) First-write wins but don't generate a warning if an entry with this name already exists.voidaddFileIfNotExists(Path origin, String target, String source) First-write wins but don't generate a warning if an entry with this name already exists.voidaddManifest(Manifest manifest) voidclose()booleanvoidMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.quarkus.deployment.pkg.jar.ArchiveCreator
addDirectory, addFile, addFile, addFile, addFileIfNotExists, addFileIfNotExists
-
Constructor Details
-
ZipFileSystemArchiveCreator
-
-
Method Details
-
addManifest
- Specified by:
addManifestin interfaceArchiveCreator- Throws:
IOException
-
addDirectory
- Specified by:
addDirectoryin interfaceArchiveCreator- Throws:
IOException
-
addFile
First-write wins, subsequent additions of the same file will generate a warning.Use
addFileIfNotExists(Path, String, String)if you expect a second write to be an expected behavior. It has the same first-write wins behavior but won't generate a warning.- Specified by:
addFilein interfaceArchiveCreator- Throws:
IOException
-
addFile
First-write wins, subsequent additions of the same file will generate a warning.Use
addFileIfNotExists(byte[], String, String)if you expect a second write to be an expected behavior. It has the same first-write wins behavior but won't generate a warning.- Specified by:
addFilein interfaceArchiveCreator- Throws:
IOException
-
addFile
First-write wins, subsequent additions of the same file will generate a warning.- Specified by:
addFilein interfaceArchiveCreator- Throws:
IOException
-
addFileIfNotExists
First-write wins but don't generate a warning if an entry with this name already exists.- Specified by:
addFileIfNotExistsin interfaceArchiveCreator- Throws:
IOException
-
addFileIfNotExists
First-write wins but don't generate a warning if an entry with this name already exists.- Specified by:
addFileIfNotExistsin interfaceArchiveCreator- Throws:
IOException
-
isMultiVersion
public boolean isMultiVersion()- Specified by:
isMultiVersionin interfaceArchiveCreator
-
makeMultiVersion
- Specified by:
makeMultiVersionin interfaceArchiveCreator- Throws:
IOException
-
close
public void close()- Specified by:
closein interfaceArchiveCreator- Specified by:
closein interfaceAutoCloseable
-