Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.commons.compress.archivers.jar
Class JarArchiveOutputStream

    java.lang.Object
      java.io.OutputStream
          org.apache.commons.compress.archivers.ArchiveOutputStream
              org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream
                  org.apache.commons.compress.archivers.jar.JarArchiveOutputStream

All Implemented Interfaces:
  Closeable, Flushable

    public class JarArchiveOutputStream

extends ZipArchiveOutputStream

Subclass that adds a special extra field to the very first entry which allows the created archive to be used as an executable jar on Solaris.

This class is not thread-safe

Nested Class Summary

Nested classes/interfaces inherited from class org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream
`ZipArchiveOutputStream.UnicodeExtraFieldPolicy`

Field Summary

Fields inherited from class org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream
`def, DEFAULT_COMPRESSION, DEFLATED, EFS_FLAG, finished, STORED`

Constructor Summary
`JarArchiveOutputStream(OutputStream out)`

Method Summary
`void` | `putArchiveEntry(ArchiveEntry ze)` Writes the headers for an archive entry to the output stream.

Methods inherited from class org.apache.commons.compress.archivers.zip.ZipArchiveOutputStream
`canWriteEntryData, close, closeArchiveEntry, createArchiveEntry, deflate, finish, flush, getEncoding, isSeekable, setComment, setCreateUnicodeExtraFields, setEncoding, setFallbackToUTF8, setLevel, setMethod, setUseLanguageEncodingFlag, write, writeCentralDirectoryEnd, writeCentralFileHeader, writeDataDescriptor, writeLocalFileHeader, writeOut, writeOut`

Methods inherited from class org.apache.commons.compress.archivers.ArchiveOutputStream
`count, count, getBytesWritten, getCount, write`

Methods inherited from class java.io.OutputStream
`write`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### JarArchiveOutputStream

    public JarArchiveOutputStream(OutputStream out)

Method Detail

### putArchiveEntry

    public void putArchiveEntry(ArchiveEntry ze)
                         throws IOException

  Description copied from class: `ZipArchiveOutputStream`
  Writes the headers for an archive entry to the output stream. The caller must then write the content to the stream and call `ArchiveOutputStream.closeArchiveEntry()` to complete the process.

  Overrides:
    `putArchiveEntry` in class `ZipArchiveOutputStream`
  Parameters:
    `ze` - describes the entry
  Throws:
    `IOException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2011 The Apache Software Foundation. All Rights Reserved.