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.
  • Field Details

    • jarMarkerAdded

      private boolean jarMarkerAdded
  • Constructor Details

    • 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
  • Method Details