Module java.base
Package java.util.jar

Class JarOutputStream

  • All Implemented Interfaces:
    Closeable,Flushable,AutoCloseable

    public classJarOutputStreamextendsZipOutputStream
    TheJarOutputStream class is used to write the contents of a JAR file to any output stream. It extends the classjava.util.zip.ZipOutputStream with support for writing an optionalManifest entry. TheManifest can be used to specify meta-information about the JAR file and its entries.
    Since:
    1.2
    See Also:
    Manifest,ZipOutputStream