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:
Closeable, 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 AbstractOnDemandInputStream
outputStream -
Constructor Summary
ConstructorsConstructorDescriptionTarOnDemandInputStreamBase(Archive<?> archive) Creates stream directly from archive. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcloseEntry(TarOutputStreamImpl outputStream) Closes the current entry context for the specifiedOutputStream.protected voidputNextEntry(TarOutputStreamImpl outputStream, String context) Writes the next entry (demarcates a new file/folder is to be written).Methods inherited from class AbstractOnDemandInputStream
createOutputStream, readMethods inherited from class InputStream
available, close, mark, markSupported, read, read, reset, skip
-
Constructor Details
-
TarOnDemandInputStreamBase
TarOnDemandInputStreamBase(Archive<?> archive) Creates stream directly from archive.- Parameters:
archive-
-
-
Method Details
-
closeEntry
Description copied from class:AbstractOnDemandInputStreamCloses the current entry context for the specifiedOutputStream.- Specified by:
closeEntryin classAbstractOnDemandInputStream<T extends TarOutputStreamImpl>- 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<T extends TarOutputStreamImpl>- Parameters:
outputStream-context-- Throws:
IOException- If an error occurred writing the entry
-