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, setMethod
flush, toString, write, write, write
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
forEach, spliterator
@CreatesObligation public ZipOutputService(FsModel model, FsOutputSocketSink sink, @CheckForNull @WillNotClose ZipInputService<E> source, AbstractZipDriver<E> driver) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
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)
AbstractZipOutputStream
name
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()
AbstractZipOutputStream
getCryptoParameters
in class AbstractZipOutputStream<E extends AbstractZipDriverEntry>
public FsModel getModel()
public boolean isBusy()
isBusy
in class AbstractZipOutputStream<E extends AbstractZipDriverEntry>
public Iterator<E> iterator()
AbstractZipOutputStream
iterator
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()
AbstractZipOutputStream
size
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.