declare namespace java { namespace util { namespace jar { /** * The JarOutputStream class is used to write the contents * of a JAR file to any output stream. It extends the class * java.util.zip.ZipOutputStream with support * for writing an optional Manifest entry. The * Manifest can be used to specify meta-information about * the JAR file and its entries. * @author David Connelly * @see Manifest * @see java.util.zip.ZipOutputStream * @since 1.2 */ // @ts-ignore class JarOutputStream extends java.util.zip.ZipOutputStream { /** * Creates a new JarOutputStream with the specified * Manifest. The manifest is written as the first * entry to the output stream. * @param out the actual output stream * @param man the optional Manifest * @exception IOException if an I/O error has occurred */ // @ts-ignore constructor(out: java.io.OutputStream, man: java.util.jar.Manifest) /** * Creates a new JarOutputStream with no manifest. * @param out the actual output stream * @exception IOException if an I/O error has occurred */ // @ts-ignore constructor(out: java.io.OutputStream) /** * Begins writing a new JAR file entry and positions the stream * to the start of the entry data. This method will also close * any previous entry. The default compression method will be * used if no compression method was specified for the entry. * The current time will be used if the entry has no set modification * time. * @param ze the ZIP/JAR entry to be written * @exception ZipException if a ZIP error has occurred * @exception IOException if an I/O error has occurred */ // @ts-ignore public putNextEntry(ze: java.util.zip.ZipEntry): void } } } }