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 org.jboss.shrinkwrap.impl.base.exporter.AbstractOnDemandInputStream
outputStream
-
Constructor Summary
ConstructorsConstructorDescriptionTarOnDemandInputStream
(Archive<?> archive) Creates stream directly from archive. -
Method Summary
Modifier and TypeMethodDescriptionprotected TarOutputStream
createOutputStream
(OutputStream outputStream) Creates the realOutputStream
to which we'll write, wrapping the provided target.Methods inherited from class org.jboss.shrinkwrap.impl.base.exporter.tar.TarOnDemandInputStreamBase
closeEntry, putNextEntry
Methods inherited from class org.jboss.shrinkwrap.impl.base.exporter.AbstractOnDemandInputStream
read
Methods inherited from class java.io.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:AbstractOnDemandInputStream
Creates the realOutputStream
to which we'll write, wrapping the provided target.- Specified by:
createOutputStream
in classAbstractOnDemandInputStream<TarOutputStream>
- Parameters:
outputStream
-- Returns:
- Throws:
IOException
- If an error occurred in creating the stream
-