Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
java.util.jar

Class JarOutputStream

java.lang.Object
|
+--java.io.OutputStream
   |
   +--java.io.FilterOutputStream
      |
      +--java.util.zip.DeflaterOutputStream
         |
         +--java.util.zip.ZipOutputStream
            |
            +--java.util.jar.JarOutputStream


public class JarOutputStream

extends ZipOutputStream

OutputStream for writing jar files. A special ZipOutputStream that can take JarEntries and can have a optional Manifest as first entry.

Author:

Constructor Summary

JarOutputStream(java.io.OutputStream out)

Creates a new JarOutputStream without a manifest entry.
JarOutputStream(java.io.OutputStream out, java.util.jar.Manifest man)

Creates a new JarOutputStream with a manifest entry.

Method Summary

voidputNextEntry(java.util.zip.ZipEntry entry)

Prepares the JarOutputStream for writing the next entry.

Constructor Details

JarOutputStream

public JarOutputStream(java.io.OutputStream out)

Creates a new JarOutputStream without a manifest entry.

Parameters:

Throws:


JarOutputStream

public JarOutputStream(java.io.OutputStream out, java.util.jar.Manifest man)

Creates a new JarOutputStream with a manifest entry. The manifest will be the first entry in the jar.

Parameters:

Throws:


Method Details

putNextEntry

public void putNextEntry(java.util.zip.ZipEntry entry)

Prepares the JarOutputStream for writing the next entry. This implementation just calls super.putNextEntre().

Parameters:

Throws: