Class TarOnDemandInputStreamBase<T extends TarOutputStreamImpl>
- java.lang.Object
-
- java.io.InputStream
-
- org.jboss.shrinkwrap.impl.base.exporter.AbstractOnDemandInputStream<T>
-
- org.jboss.shrinkwrap.impl.base.exporter.tar.TarOnDemandInputStreamBase<T>
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
- Direct Known Subclasses:
TarOnDemandInputStream
abstract class TarOnDemandInputStreamBase<T extends TarOutputStreamImpl> extends AbstractOnDemandInputStream<T>
Base for Tar related on-demand InputStreams.
-
-
Field Summary
-
Fields inherited from class org.jboss.shrinkwrap.impl.base.exporter.AbstractOnDemandInputStream
outputStream
-
-
Constructor Summary
Constructors Constructor Description TarOnDemandInputStreamBase(Archive<?> archive)Creates stream directly from archive.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidcloseEntry(TarOutputStreamImpl outputStream)Closes the current entry context for the specifiedOutputStream.protected voidputNextEntry(TarOutputStreamImpl 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
createOutputStream, read
-
-
-
-
Constructor Detail
-
TarOnDemandInputStreamBase
TarOnDemandInputStreamBase(Archive<?> archive)
Creates stream directly from archive.- Parameters:
archive-
-
-
Method Detail
-
closeEntry
protected void closeEntry(TarOutputStreamImpl outputStream) throws java.io.IOException
Description copied from class:AbstractOnDemandInputStreamCloses the current entry context for the specifiedOutputStream.- Specified by:
closeEntryin classAbstractOnDemandInputStream<T extends TarOutputStreamImpl>- Throws:
java.io.IOException
-
putNextEntry
protected void putNextEntry(TarOutputStreamImpl 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<T extends TarOutputStreamImpl>- Throws:
java.io.IOException- If an error occurred writing the entry
-
-