@NotThreadSafe @CleanupObligation interface OutputMethod
Implementations cannot be thread-safe.
| Modifier and Type | Method and Description |
|---|---|
void |
finish()
Finishes writing the initialized ZIP entry.
|
void |
init(ZipEntry entry)
Checks the given
entry and updates it. |
OutputStream |
start()
Starts writing the initialized ZIP entry and returns an output stream
for writing its contents.
|
@DischargesObligation void finish() throws IOException
IOException - on any I/O error.void init(ZipEntry entry) throws ZipException
entry and updates it.
This method may be called multiple times, so it must be idempotent with
respect to its side effects on entry!entry - the ZIP entry to check and update.ZipException - if checking the given entry failed for
some reason.@CreatesObligation OutputStream start() throws IOException
finish() after writing the contents to the
returned output stream.
You must not call OutputStream.close() on the returned output
stream!IOException - on any I/O error.Copyright © 2005-2012 Schlichtherle IT Services. All Rights Reserved.