Class TarOnDemandInputStream
java.lang.Object
java.io.InputStream
org.jboss.shrinkwrap.impl.base.exporter.AbstractOnDemandInputStream<TarOutputStream>
org.jboss.shrinkwrap.impl.base.exporter.tar.TarOnDemandInputStreamBase<TarOutputStream>
org.jboss.shrinkwrap.impl.base.exporter.tar.TarOnDemandInputStream
- All Implemented Interfaces:
Closeable, AutoCloseable
Tar on demand input stream.
-
Field Summary
Fields inherited from class AbstractOnDemandInputStream
outputStream -
Constructor Summary
ConstructorsConstructorDescriptionTarOnDemandInputStream(Archive<?> archive) Creates stream directly from archive. -
Method Summary
Modifier and TypeMethodDescriptionprotected TarOutputStreamcreateOutputStream(OutputStream outputStream) Creates the realOutputStreamto which we'll write, wrapping the provided target.Methods inherited from class TarOnDemandInputStreamBase
closeEntry, putNextEntryMethods inherited from class AbstractOnDemandInputStream
readMethods inherited from class InputStream
available, close, mark, markSupported, read, read, reset, skip
-
Constructor Details
-
TarOnDemandInputStream
TarOnDemandInputStream(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<TarOutputStream>- Parameters:
outputStream-- Returns:
- Throws:
IOException- If an error occurred in creating the stream
-