private final class RawZipOutputStream.WinZipAesOutputMethod extends RawZipOutputStream.EncryptedOutputMethod
| Modifier and Type | Field and Description |
|---|---|
(package private) WinZipAesEntryParameters |
entryParam |
(package private) WinZipAesParameters |
generalParam |
(package private) WinZipAesEntryOutputStream |
out |
(package private) boolean |
suppressCrc |
delegate| Constructor and Description |
|---|
RawZipOutputStream.WinZipAesOutputMethod(RawZipOutputStream.RawOutputMethod processor,
WinZipAesParameters param) |
| 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.
|
@CheckForNull WinZipAesEntryParameters entryParam
final WinZipAesParameters generalParam
boolean suppressCrc
RawZipOutputStream.WinZipAesOutputMethod(RawZipOutputStream.RawOutputMethod processor, WinZipAesParameters param)
public void finish()
throws IOException
OutputMethodfinish in interface OutputMethodfinish in class DecoratingOutputMethodIOException - on any I/O error.public void init(ZipEntry entry) throws IOException
OutputMethodentry and updates it.
This method may be called multiple times, so it must be reentrant!init in interface OutputMethodinit in class DecoratingOutputMethodentry - the ZIP entry to check and update.IOException - if checking the given entry failed for some reason.public OutputStream start() throws IOException
OutputMethodOutputMethod.finish() after writing the contents to the
returned output stream.
You must not call OutputStream.close() on the returned output
stream!start in interface OutputMethodstart in class DecoratingOutputMethodIOException - on any I/O error.Copyright © 2004-2011 Schlichtherle IT Services. All Rights Reserved.