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).
|
read
TarGzOnDemandInputStream(Archive<?> archive)
archive
- protected TarGzOutputStream createOutputStream(java.io.OutputStream outputStream) throws java.io.IOException
AbstractOnDemandInputStream
OutputStream
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
AbstractOnDemandInputStream
OutputStream
.closeEntry
in class AbstractOnDemandInputStream<TarGzOutputStream>
java.io.IOException
protected void putNextEntry(TarGzOutputStream outputStream, java.lang.String context) throws java.io.IOException
AbstractOnDemandInputStream
putNextEntry
in class AbstractOnDemandInputStream<TarGzOutputStream>
java.io.IOException
- If an error occurred writing the entry