private final class RawZipOutputStream.BZip2OutputMethod extends DecoratingOutputMethod
| Modifier and Type | Field and Description |
|---|---|
(package private) BZip2CompressorOutputStream |
cout |
(package private) LEDataOutputStream |
dout |
(package private) ZipEntry |
entry |
delegate| Constructor and Description |
|---|
RawZipOutputStream.BZip2OutputMethod(OutputMethod processor) |
| Modifier and Type | Method and Description |
|---|---|
void |
finish()
Finishes writing the initialized ZIP entry.
|
(package private) int |
getBZip2BlockSize() |
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.
|
@Nullable BZip2CompressorOutputStream cout
@Nullable LEDataOutputStream dout
RawZipOutputStream.BZip2OutputMethod(OutputMethod processor)
public void finish()
throws IOException
OutputMethodfinish in interface OutputMethodfinish in class DecoratingOutputMethodIOException - on any I/O error.int getBZip2BlockSize()
public void init(ZipEntry entry) throws ZipException
OutputMethodentry and updates it.
This method may be called multiple times, so it must be idempotent with
respect to its side effects on entry!init in interface OutputMethodinit in class DecoratingOutputMethodentry - the ZIP entry to check and update.ZipException - 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 © 2005-2012 Schlichtherle IT Services. All Rights Reserved.