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