Android
java.util.jar
public class

java.util.jar.JarOutputStream

java.lang.Object
java.io.OutputStream Closeable Flushable
java.io.FilterOutputStream
java.util.zip.DeflaterOutputStream
java.util.zip.ZipOutputStream
java.util.jar.JarOutputStream

The JarOutputStream is used to output data in JarFile format.

Summary

Constants inherited from class java.util.zip.ZipOutputStream
Fields inherited from class java.util.zip.DeflaterOutputStream
Fields inherited from class java.io.FilterOutputStream

Public Constructors

            JarOutputStream(OutputStream os, Manifest mf)
Constructs a new JarOutputStream using os as the underlying stream.
            JarOutputStream(OutputStream os)
Constructs a new JarOutputStream using os as the underlying stream.

Public Methods

          void  putNextEntry(ZipEntry ze)
Writes the specified entry to the underlying stream.
Methods inherited from class java.util.zip.ZipOutputStream
Methods inherited from class java.util.zip.DeflaterOutputStream
Methods inherited from class java.io.FilterOutputStream
Methods inherited from class java.io.OutputStream
Methods inherited from class java.lang.Object
Methods inherited from interface java.io.Closeable
Methods inherited from interface java.io.Flushable

Details

Public Constructors

public JarOutputStream(OutputStream os, Manifest mf)

Constructs a new JarOutputStream using os as the underlying stream. Manifest information for the JarFile to be written is obtained from the parameter Manifest, mf.

Parameters

os The OutputStream to write to
mf The Manifest to output for this Jar.

Throws

IOException If an error occurs creating the JarOutputStream

public JarOutputStream(OutputStream os)

Constructs a new JarOutputStream using os as the underlying stream.

Parameters

os The OutputStream to write to

Throws

IOException If an error occurs creating the JarOutputStream

Public Methods

public void putNextEntry(ZipEntry ze)

Writes the specified entry to the underlying stream. The previous entry is closed if it is still open.

Parameters

ze The ZipEntry to write

Throws

IOException If an error occurs writing the entry
Copyright 2007 Google Inc. Build 0.9_r1-98467 - 14 Aug 2008 18:56