E - the type of the ZIP driver entries.@NotThreadSafe
public final class ZipOutputService<E extends AbstractZipDriverEntry>
extends net.java.truevfs.comp.zip.AbstractZipOutputStream<E>
implements net.java.truecommons.cio.OutputService<E>
ZipInputService| Constructor and Description |
|---|
ZipOutputService(net.java.truevfs.kernel.spec.FsModel model,
net.java.truevfs.kernel.spec.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(java.lang.String name) |
protected net.java.truevfs.comp.zip.ZipCryptoParameters |
getCryptoParameters() |
net.java.truevfs.kernel.spec.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.
|
java.util.Iterator<E> |
iterator() |
net.java.truecommons.cio.OutputSocket<E> |
output(E local) |
int |
size() |
closeEntry, finish, getCharset, getComment, getLevel, getMethod, getRawCharset, length, putNextEntry, putNextEntry, setComment, setLevel, setMethodflush, toString, write, write, write@CreatesObligation
public ZipOutputService(net.java.truevfs.kernel.spec.FsModel model,
net.java.truevfs.kernel.spec.FsOutputSocketSink sink,
@CheckForNull @WillNotClose
ZipInputService<E> source,
AbstractZipDriver<E> driver)
throws java.io.IOException
java.io.IOExceptionpublic net.java.truevfs.kernel.spec.FsModel getModel()
protected net.java.truevfs.comp.zip.ZipCryptoParameters getCryptoParameters()
getCryptoParameters in class net.java.truevfs.comp.zip.AbstractZipOutputStream<E extends AbstractZipDriverEntry>public int size()
size in interface net.java.truecommons.cio.Container<E extends AbstractZipDriverEntry>size in class net.java.truevfs.comp.zip.AbstractZipOutputStream<E extends AbstractZipDriverEntry>public java.util.Iterator<E> iterator()
iterator in interface java.lang.Iterable<E extends AbstractZipDriverEntry>iterator in interface net.java.truecommons.cio.Container<E extends AbstractZipDriverEntry>iterator in class net.java.truevfs.comp.zip.AbstractZipOutputStream<E extends AbstractZipDriverEntry>@CheckForNull public E entry(java.lang.String name)
entry in interface net.java.truecommons.cio.Container<E extends AbstractZipDriverEntry>entry in class net.java.truevfs.comp.zip.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 boolean isBusy()
isBusy in class net.java.truevfs.comp.zip.AbstractZipOutputStream<E extends AbstractZipDriverEntry>public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in interface net.java.truecommons.shed.Stream<E extends AbstractZipDriverEntry>close in class net.java.truevfs.comp.zip.AbstractZipOutputStream<E extends AbstractZipDriverEntry>java.io.IOException