E - the type of the ZIP driver entries.@NotThreadSafe public final class ZipOutputService<E extends AbstractZipDriverEntry> extends AbstractZipOutputStream<E> implements net.java.truecommons.cio.OutputService<E>
ZipInputService| Constructor and Description |
|---|
ZipOutputService(FsModel model,
FsOutputSocketSink sink,
ZipInputService<E> source,
AbstractZipDriver<E> driver) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Retains the postamble of the source source ZIP file, if any.
|
E |
entry(String name)
Returns the entry for the given
name or null if no entry
with this name exists in this ZIP file. |
protected ZipCryptoParameters |
getCryptoParameters()
Returns the parameters for encryption or authentication of entries.
|
FsModel |
getModel()
Returns the file system model provided to the constructor.
|
boolean |
isBusy()
Returns whether this ZIP output service is busy writing an archive entry
or not.
|
Iterator<E> |
iterator()
Returns an iteration of all entries written to this ZIP file so
far.
|
net.java.truecommons.cio.OutputSocket<E> |
output(E local) |
int |
size()
Returns the number of ZIP entries written so far.
|
closeEntry, finish, getCharset, getComment, getLevel, getMethod, getRawCharset, length, putNextEntry, putNextEntry, setComment, setLevel, setMethodflush, toString, write, write, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliterator@CreatesObligation public ZipOutputService(FsModel model, FsOutputSocketSink sink, @CheckForNull @WillNotClose ZipInputService<E> source, AbstractZipDriver<E> driver) throws IOException
IOExceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in interface net.java.truecommons.shed.Stream<E extends AbstractZipDriverEntry>close in class AbstractZipOutputStream<E extends AbstractZipDriverEntry>IOException - On any I/O error.@CheckForNull public E entry(String name)
AbstractZipOutputStreamname or null if no entry
with this name exists in this ZIP file.
Note that the returned entry is shared with this instance - it is an
error to change its state!entry in interface net.java.truecommons.cio.Container<E extends AbstractZipDriverEntry>entry in class AbstractZipOutputStream<E extends AbstractZipDriverEntry>name - the name of the ZIP entry.name or null if no entry
with this name exists in this ZIP file.protected ZipCryptoParameters getCryptoParameters()
AbstractZipOutputStreamgetCryptoParameters in class AbstractZipOutputStream<E extends AbstractZipDriverEntry>public FsModel getModel()
public boolean isBusy()
isBusy in class AbstractZipOutputStream<E extends AbstractZipDriverEntry>public Iterator<E> iterator()
AbstractZipOutputStreamiterator in interface Iterable<E extends AbstractZipDriverEntry>iterator in interface net.java.truecommons.cio.Container<E extends AbstractZipDriverEntry>iterator in class AbstractZipOutputStream<E extends AbstractZipDriverEntry>public net.java.truecommons.cio.OutputSocket<E> output(E local)
output in interface net.java.truecommons.cio.OutputService<E extends AbstractZipDriverEntry>public int size()
AbstractZipOutputStreamsize in interface net.java.truecommons.cio.Container<E extends AbstractZipDriverEntry>size in class AbstractZipOutputStream<E extends AbstractZipDriverEntry>Copyright © 2005–2018 Schlichtherle IT Services. All rights reserved.