Class JarArchiveOutputStream

  • All Implemented Interfaces:
    Closeable, Flushable, 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​(OutputStream out)
      • JarArchiveOutputStream

        public JarArchiveOutputStream​(OutputStream out,
                                      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