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
OutputStream for writing jar files.
A special ZipOutputStream that can take JarEntries and can have a optional
Manifest as first entry.
Author:- Mark Wielaard (mark@klomp.org)
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:
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:
IOException
- when some unexpected I/O exception occurred