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