@NotThreadSafe @DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) public class ZipOutputShop extends RawZipOutputStream<ZipArchiveEntry> implements OutputShop<ZipArchiveEntry>
FsMultiplexedOutputShop to overcome this limitation.ZipInputShop| Modifier and Type | Class and Description |
|---|---|
private class |
ZipOutputShop.BufferedEntryOutputStream
This entry output stream writes the ZIP archive entry to an
I/O pool entry. |
private class |
ZipOutputShop.EntryOutputStream
This entry output stream writes directly to this output shop.
|
| Modifier and Type | Field and Description |
|---|---|
private ZipDriver |
driver |
private FsModel |
model |
private ZipCryptoParameters |
param |
private IOPool.Entry<?> |
postamble |
private ZipArchiveEntry |
tempEntry |
delegate| Constructor and Description |
|---|
ZipOutputShop(ZipDriver driver,
FsModel model,
OutputStream out,
ZipInputShop source) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Retains the postamble of the source source ZIP file, if any.
|
protected ZipCryptoParameters |
getCryptoParameters()
Returns the parameters for encryption or authentication of entries.
|
ZipArchiveEntry |
getEntry(String name)
Returns the entry for the given name or
null if no entry with
this name exists. |
FsModel |
getModel()
Returns the file system model provided to the constructor.
|
OutputSocket<ZipArchiveEntry> |
getOutputSocket(ZipArchiveEntry lt) |
private IOPool<?> |
getPool() |
int |
getSize() |
boolean |
isBusy()
Returns whether this output archive is busy writing an archive entry
or not.
|
Iterator<ZipArchiveEntry> |
iterator()
Returns an iteration of all entries written to this ZIP file so
far.
|
closeEntry, finish, getCharset, getComment, getLevel, getMethod, getRawCharset, length, putNextEntry, putNextEntry, setComment, setLevel, setMethod, sizeprivate final ZipDriver driver
private final FsModel model
private ZipCryptoParameters param
@CheckForNull private IOPool.Entry<?> postamble
@CheckForNull private ZipArchiveEntry tempEntry
public ZipOutputShop(ZipDriver driver, FsModel model, OutputStream out, @CheckForNull ZipInputShop source) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class RawZipOutputStream<ZipArchiveEntry>IOException - On any I/O error.protected ZipCryptoParameters getCryptoParameters()
RawZipOutputStreamgetCryptoParameters in class RawZipOutputStream<ZipArchiveEntry>@CheckForNull public ZipArchiveEntry getEntry(String name)
RawZipOutputStreamnull if no entry with
this name exists.
Note that the returned entry is shared with this instance.
It is illegal to change its state!getEntry in interface EntryContainer<ZipArchiveEntry>getEntry in class RawZipOutputStream<ZipArchiveEntry>name - the name of the ZIP entry.public FsModel getModel()
public OutputSocket<ZipArchiveEntry> getOutputSocket(ZipArchiveEntry lt)
getOutputSocket in interface OutputService<ZipArchiveEntry>private IOPool<?> getPool()
public int getSize()
getSize in interface EntryContainer<ZipArchiveEntry>public final boolean isBusy()
isBusy in class RawZipOutputStream<ZipArchiveEntry>public Iterator<ZipArchiveEntry> iterator()
RawZipOutputStreamiterator in interface EntryContainer<ZipArchiveEntry>iterator in interface Iterable<ZipArchiveEntry>iterator in class RawZipOutputStream<ZipArchiveEntry>Copyright © 2004-2011 Schlichtherle IT Services. All Rights Reserved.