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