Package Summary  Overview Summary

class:JarOutputStream [NONE]

  • All Implemented Interfaces:
    Closeable, Flushable, AutoCloseable

    public class JarOutputStream
    extends ZipOutputStream
    
    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.
    Since:
    1.2
    See Also:
    Manifest, ZipOutputStream

field:LOCSIG [NONE]

field:EXTSIG [NONE]

field:CENSIG [NONE]

field:ENDSIG [NONE]

field:LOCHDR [NONE]

field:EXTHDR [NONE]

field:CENHDR [NONE]

field:ENDHDR [NONE]

field:LOCVER [NONE]

field:LOCFLG [NONE]

field:LOCHOW [NONE]

field:LOCTIM [NONE]

field:LOCCRC [NONE]

field:LOCSIZ [NONE]

field:LOCLEN [NONE]

field:LOCNAM [NONE]

field:LOCEXT [NONE]

field:EXTCRC [NONE]

field:EXTSIZ [NONE]

field:EXTLEN [NONE]

field:CENVEM [NONE]

field:CENVER [NONE]

field:CENFLG [NONE]

field:CENHOW [NONE]

field:CENTIM [NONE]

field:CENCRC [NONE]

field:CENSIZ [NONE]

field:CENLEN [NONE]

field:CENNAM [NONE]

field:CENEXT [NONE]

field:CENCOM [NONE]

field:CENDSK [NONE]

field:CENATT [NONE]

field:CENATX [NONE]

field:CENOFF [NONE]

field:ENDSUB [NONE]

field:ENDTOT [NONE]

field:ENDSIZ [NONE]

field:ENDOFF [NONE]

field:ENDCOM [NONE]

constructor:<init>(java.io.OutputStream,java.util.jar.Manifest) [NONE]

  • JarOutputStream

    public JarOutputStream​(OutputStream out,
                           Manifest man)
                    throws IOException
    
    Creates a new JarOutputStream with the specified Manifest. The manifest is written as the first entry to the output stream.
    Parameters:
    out - the actual output stream
    man - the optional Manifest
    Throws:
    IOException - if an I/O error has occurred

constructor:<init>(java.io.OutputStream) [NONE]

  • JarOutputStream

    public JarOutputStream​(OutputStream out)
                    throws IOException
    
    Creates a new JarOutputStream with no manifest.
    Parameters:
    out - the actual output stream
    Throws:
    IOException - if an I/O error has occurred

method:putNextEntry(java.util.zip.ZipEntry) [NONE]

  • putNextEntry

    public void putNextEntry​(ZipEntry ze)
                      throws IOException
    
    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.
    Overrides:
    putNextEntry in class ZipOutputStream
    Parameters:
    ze - the ZIP/JAR entry to be written
    Throws:
    ZipException - if a ZIP error has occurred
    IOException - if an I/O error has occurred

© 2019 Oracle Corporation and/or its affiliates