@DefaultAnnotation(value=edu.umd.cs.findbugs.annotations.NonNull.class) public class ZipOutputShop extends RawZipOutputStream<ZipArchiveEntry> implements OutputShop<ZipArchiveEntry>
FsMultiplexedArchiveOutputShop 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 IOPool<?> |
pool |
private IOPool.Entry<?> |
postamble |
private ZipArchiveEntry |
tempEntry |
DEFAULT_CHARSETdelegate| Constructor and Description |
|---|
ZipOutputShop(ZipDriver driver,
OutputStream out,
ZipInputShop source) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Retains the postamble of the source source ZIP file, if any.
|
ZipArchiveEntry |
getEntry(String name)
Returns the entry for the given name or
null if no entry with
this name exists. |
OutputSocket<ZipArchiveEntry> |
getOutputSocket(ZipArchiveEntry entry) |
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, entries, finish, getCharset, getComment, getLevel, getMethod, length, putNextEntry, putNextEntry, setComment, setLevel, setMethod, size, write, writeflush, toString, writeprivate final IOPool<?> pool
@CheckForNull private IOPool.Entry<?> postamble
@Nullable private ZipArchiveEntry tempEntry
public ZipOutputShop(ZipDriver driver, OutputStream out, @CheckForNull ZipInputShop source) throws IOException
IOExceptionpublic int getSize()
getSize in interface EntryContainer<ZipArchiveEntry>public Iterator<ZipArchiveEntry> iterator()
RawZipOutputStreamiterator in interface EntryContainer<ZipArchiveEntry>iterator in interface Iterable<ZipArchiveEntry>iterator 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 OutputSocket<ZipArchiveEntry> getOutputSocket(ZipArchiveEntry entry)
getOutputSocket in interface OutputService<ZipArchiveEntry>public final boolean isBusy()
isBusy in class RawZipOutputStream<ZipArchiveEntry>public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class RawZipOutputStream<ZipArchiveEntry>IOException - On any I/O related issue.Copyright © 2005-2011 Schlichtherle IT Services. All Rights Reserved.