Class JarArchiveOutputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Flushable, java.lang.AutoCloseable

    public class JarArchiveOutputStream
    extends ZipArchiveOutputStream
    Subclass that adds a special extra field to the very first entry which allows the created archive to be used as an executable jar on Solaris.
    • Constructor Detail

      • JarArchiveOutputStream

        public JarArchiveOutputStream​(java.io.OutputStream out)
      • JarArchiveOutputStream

        public JarArchiveOutputStream​(java.io.OutputStream out,
                                      java.lang.String encoding)
        Create and instance that wraps the output stream using the provided encoding.
        Parameters:
        out - the output stream to wrap
        encoding - the encoding to use. Use null for the platform default.
        Since:
        1.10