class ZipOnDemandInputStream extends AbstractOnDemandInputStream<java.util.zip.ZipOutputStream>
outputStream
Constructor and Description |
---|
ZipOnDemandInputStream(Archive<?> archive)
Creates stream directly from archive.
|
Modifier and Type | Method and Description |
---|---|
protected void |
closeEntry(java.util.zip.ZipOutputStream outputStream)
Closes the current entry context for the specified
OutputStream . |
protected java.util.zip.ZipOutputStream |
createOutputStream(java.io.OutputStream outputStream)
Creates the real
OutputStream to which we'll write, wrapping the provided target. |
protected void |
putNextEntry(java.util.zip.ZipOutputStream outputStream,
java.lang.String context)
Writes the next entry (demarcates a new file/folder is to be written).
|
read
ZipOnDemandInputStream(Archive<?> archive)
archive
- protected java.util.zip.ZipOutputStream createOutputStream(java.io.OutputStream outputStream)
AbstractOnDemandInputStream
OutputStream
to which we'll write, wrapping the provided target.createOutputStream
in class AbstractOnDemandInputStream<java.util.zip.ZipOutputStream>
protected void closeEntry(java.util.zip.ZipOutputStream outputStream) throws java.io.IOException
AbstractOnDemandInputStream
OutputStream
.closeEntry
in class AbstractOnDemandInputStream<java.util.zip.ZipOutputStream>
java.io.IOException
protected void putNextEntry(java.util.zip.ZipOutputStream outputStream, java.lang.String context) throws java.io.IOException
AbstractOnDemandInputStream
putNextEntry
in class AbstractOnDemandInputStream<java.util.zip.ZipOutputStream>
java.io.IOException
- If an error occurred writing the entry