protected static interface CustomZipOutputStream.Impl
Modifier and Type | Method and Description |
---|---|
void |
actuallyClose() |
void |
actuallyCloseEntry()
Called by
CustomZipOutputStream.close() and used by impls to close the delegate
stream. |
void |
actuallyPutNextEntry(ZipEntry entry)
Called by
CustomZipOutputStream.putNextEntry(ZipEntry) and used by impls to put the
next entry into the zip file. |
void |
actuallyWrite(byte[] b,
int off,
int len)
Called by
CustomZipOutputStream.write(byte[], int, int) only once it is known that
the stream has not been closed, and that a ZipEntry has already been put on the
stream and not closed. |
void actuallyPutNextEntry(ZipEntry entry) throws IOException
CustomZipOutputStream.putNextEntry(ZipEntry)
and used by impls to put the
next entry into the zip file. It is guaranteed that the entry
won't be null and the
stream will be open. It is also guaranteed that there's no current entry open.entry
- The ZipEntry
to write.IOException
void actuallyCloseEntry() throws IOException
CustomZipOutputStream.close()
and used by impls to close the delegate
stream. This method will be called at most once in the lifecycle of the
CustomZipOutputStream.IOException
void actuallyWrite(byte[] b, int off, int len) throws IOException
CustomZipOutputStream.write(byte[], int, int)
only once it is known that
the stream has not been closed, and that a ZipEntry
has already been put on the
stream and not closed.IOException
void actuallyClose() throws IOException
IOException