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:
Closeable,AutoCloseable
TarBz on demand input stream.
-
Field Summary
Fields inherited from class org.jboss.shrinkwrap.impl.base.exporter.AbstractOnDemandInputStream
outputStream -
Constructor Summary
ConstructorsConstructorDescriptionTarBz2OnDemandInputStream(Archive<?> archive) Creates stream directly from archive. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcloseEntry(TarBzOutputStream outputStream) Closes the current entry context for the specifiedOutputStream.protected TarBzOutputStreamcreateOutputStream(OutputStream outputStream) Creates the realOutputStreamto which we'll write, wrapping the provided target.protected voidputNextEntry(TarBzOutputStream outputStream, String context) Writes the next entry (demarcates a new file/folder is to be written).Methods inherited from class org.jboss.shrinkwrap.impl.base.exporter.AbstractOnDemandInputStream
readMethods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
-
Constructor Details
-
TarBz2OnDemandInputStream
TarBz2OnDemandInputStream(Archive<?> archive) Creates stream directly from archive.- Parameters:
archive-
-
-
Method Details
-
createOutputStream
Description copied from class:AbstractOnDemandInputStreamCreates the realOutputStreamto which we'll write, wrapping the provided target.- Specified by:
createOutputStreamin classAbstractOnDemandInputStream<TarBzOutputStream>- Parameters:
outputStream-- Returns:
- Throws:
IOException- If an error occurred in creating the stream
-
closeEntry
Description copied from class:AbstractOnDemandInputStreamCloses the current entry context for the specifiedOutputStream.- Specified by:
closeEntryin classAbstractOnDemandInputStream<TarBzOutputStream>- Parameters:
outputStream-- Throws:
IOException
-
putNextEntry
Description copied from class:AbstractOnDemandInputStreamWrites the next entry (demarcates a new file/folder is to be written).- Specified by:
putNextEntryin classAbstractOnDemandInputStream<TarBzOutputStream>- Parameters:
outputStream-context-- Throws:
IOException- If an error occurred writing the entry
-