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).
|
readZipOnDemandInputStream(Archive<?> archive)
archive - protected java.util.zip.ZipOutputStream createOutputStream(java.io.OutputStream outputStream)
AbstractOnDemandInputStreamOutputStream 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
AbstractOnDemandInputStreamOutputStream.closeEntry in class AbstractOnDemandInputStream<java.util.zip.ZipOutputStream>java.io.IOExceptionprotected void putNextEntry(java.util.zip.ZipOutputStream outputStream,
java.lang.String context)
throws java.io.IOException
AbstractOnDemandInputStreamputNextEntry in class AbstractOnDemandInputStream<java.util.zip.ZipOutputStream>java.io.IOException - If an error occurred writing the entry