Class TarElementInputStreamWrapper
- java.lang.Object
-
- java.io.InputStream
-
- java.io.FilterInputStream
-
- java.io.BufferedInputStream
-
- org.apache.camel.dataformat.tarfile.TarElementInputStreamWrapper
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class TarElementInputStreamWrapper extends BufferedInputStream
Keeps a handle on the originalInputStream
even after closing the buffered input stream.
-
-
Field Summary
-
Fields inherited from class java.io.FilterInputStream
in
-
-
Constructor Summary
Constructors Constructor Description TarElementInputStreamWrapper(InputStream in)
TarElementInputStreamWrapper(InputStream in, int size)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
-
Methods inherited from class java.io.BufferedInputStream
available, mark, markSupported, read, read, reset, skip
-
Methods inherited from class java.io.FilterInputStream
read
-
Methods inherited from class java.io.InputStream
nullInputStream, readAllBytes, readNBytes, readNBytes, transferTo
-
-
-
-
Constructor Detail
-
TarElementInputStreamWrapper
public TarElementInputStreamWrapper(InputStream in, int size)
-
TarElementInputStreamWrapper
public TarElementInputStreamWrapper(InputStream in)
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classBufferedInputStream
- Throws:
IOException
-
-