Class TarBz2OnDemandInputStream
- java.lang.Object
-
- java.io.InputStream
-
- org.jboss.shrinkwrap.impl.base.exporter.AbstractOnDemandInputStream<TarBzOutputStream>
-
- org.jboss.shrinkwrap.impl.base.exporter.tar.TarBz2OnDemandInputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.lang.AutoCloseable
class TarBz2OnDemandInputStream extends AbstractOnDemandInputStream<TarBzOutputStream>
TarBz on demand input stream.
-
-
Field Summary
-
Fields inherited from class org.jboss.shrinkwrap.impl.base.exporter.AbstractOnDemandInputStream
outputStream
-
-
Constructor Summary
Constructors Constructor Description TarBz2OnDemandInputStream(Archive<?> archive)
Creates stream directly from archive.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
closeEntry(TarBzOutputStream outputStream)
Closes the current entry context for the specifiedOutputStream
.protected TarBzOutputStream
createOutputStream(java.io.OutputStream outputStream)
Creates the realOutputStream
to which we'll write, wrapping the provided target.protected void
putNextEntry(TarBzOutputStream outputStream, java.lang.String context, Asset asset)
Writes the next entry (demarcates a new file/folder is to be written).-
Methods inherited from class org.jboss.shrinkwrap.impl.base.exporter.AbstractOnDemandInputStream
read
-
-
-
-
Constructor Detail
-
TarBz2OnDemandInputStream
TarBz2OnDemandInputStream(Archive<?> archive)
Creates stream directly from archive.- Parameters:
archive
-
-
-
Method Detail
-
createOutputStream
protected TarBzOutputStream createOutputStream(java.io.OutputStream outputStream) throws java.io.IOException
Description copied from class:AbstractOnDemandInputStream
Creates the realOutputStream
to which we'll write, wrapping the provided target.- Specified by:
createOutputStream
in classAbstractOnDemandInputStream<TarBzOutputStream>
- Returns:
- Throws:
java.io.IOException
- If an error occurred in creating the stream
-
closeEntry
protected void closeEntry(TarBzOutputStream outputStream) throws java.io.IOException
Description copied from class:AbstractOnDemandInputStream
Closes the current entry context for the specifiedOutputStream
.- Specified by:
closeEntry
in classAbstractOnDemandInputStream<TarBzOutputStream>
- Throws:
java.io.IOException
-
putNextEntry
protected void putNextEntry(TarBzOutputStream outputStream, java.lang.String context, Asset asset) throws java.io.IOException
Description copied from class:AbstractOnDemandInputStream
Writes the next entry (demarcates a new file/folder is to be written).- Specified by:
putNextEntry
in classAbstractOnDemandInputStream<TarBzOutputStream>
- Throws:
java.io.IOException
- If an error occurred writing the entry
-
-