Class FileConcatInputStream
- java.lang.Object
-
- java.io.InputStream
-
- fr.ens.biologie.genomique.eoulsan.io.AbstractConcatInputStream
-
- fr.ens.biologie.genomique.eoulsan.io.FileConcatInputStream
-
- All Implemented Interfaces:
Closeable,AutoCloseable
public class FileConcatInputStream extends AbstractConcatInputStream
This class define an InputStream that concatenate files in an InputStream.- Since:
- 1.0
- Author:
- Laurent Jourdren
-
-
Constructor Summary
Constructors Constructor Description FileConcatInputStream(List<File> files)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanhasNextInputStream()Test if there is an other InputStream to concatenateprotected InputStreamnextInputStream()Get the next InputStream to concatenate-
Methods inherited from class fr.ens.biologie.genomique.eoulsan.io.AbstractConcatInputStream
close, markSupported, read, read, read
-
Methods inherited from class java.io.InputStream
available, mark, nullInputStream, readAllBytes, readNBytes, readNBytes, reset, skip, transferTo
-
-
-
-
Method Detail
-
hasNextInputStream
protected boolean hasNextInputStream()
Description copied from class:AbstractConcatInputStreamTest if there is an other InputStream to concatenate- Specified by:
hasNextInputStreamin classAbstractConcatInputStream- Returns:
- true if an other InputStream is available
-
nextInputStream
protected InputStream nextInputStream() throws IOException
Description copied from class:AbstractConcatInputStreamGet the next InputStream to concatenate- Specified by:
nextInputStreamin classAbstractConcatInputStream- Returns:
- the next InputStream to concatenate
- Throws:
IOException- if an error occurs while creating InputStream
-
-