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
ConstructorsConstructorDescriptionLazySequenceInputStream(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:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
read
- Overrides:
readin classInputStream- Throws:
IOException
-
available
- Overrides:
availablein classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-