Package fr.gouv.vitam.common.stream
Class LazySequenceInputStream
java.lang.Object
java.io.InputStream
fr.gouv.vitam.common.stream.LazySequenceInputStream
- All Implemented Interfaces:
Closeable
,AutoCloseable
A
SequenceInputStream
-like implementation with lazy input stream iterator.
An input stream in the iterator is initialized and consumed only when the previous input stream is fully consumed.-
Constructor Summary
ConstructorDescriptionLazySequenceInputStream
(Iterator<InputStream> lazyInputStreamIterator) Constructor -
Method Summary
Methods inherited from class java.io.InputStream
mark, markSupported, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
LazySequenceInputStream
Constructor- Parameters:
lazyInputStreamIterator
- an iterator that provides next input streams to chain
-
-
Method Details
-
read
- Specified by:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
read
- Overrides:
read
in classInputStream
- Throws:
IOException
-
available
- Overrides:
available
in classInputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classInputStream
- Throws:
IOException
-