Class PathConcatInputStream
- java.lang.Object
-
- java.io.InputStream
-
- fr.ens.biologie.genomique.eoulsan.io.AbstractConcatInputStream
-
- fr.ens.biologie.genomique.eoulsan.io.PathConcatInputStream
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class PathConcatInputStream extends AbstractConcatInputStream
This class define an InputStream that concatenate path in an InputStream.- Since:
- 1.0
- Author:
- Laurent Jourdren
-
-
Constructor Summary
Constructors Constructor Description PathConcatInputStream(List<org.apache.hadoop.fs.Path> paths, org.apache.hadoop.conf.Configuration conf)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
hasNextInputStream()
Test if there is an other InputStream to concatenateprotected InputStream
nextInputStream()
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
-
-
-
-
Constructor Detail
-
PathConcatInputStream
public PathConcatInputStream(List<org.apache.hadoop.fs.Path> paths, org.apache.hadoop.conf.Configuration conf)
Constructor.- Parameters:
paths
- paths to concatenate in the InputStream.conf
- Hadoop configuration
-
-
Method Detail
-
hasNextInputStream
protected boolean hasNextInputStream()
Description copied from class:AbstractConcatInputStream
Test if there is an other InputStream to concatenate- Specified by:
hasNextInputStream
in classAbstractConcatInputStream
- Returns:
- true if an other InputStream is available
-
nextInputStream
protected InputStream nextInputStream() throws IOException
Description copied from class:AbstractConcatInputStream
Get the next InputStream to concatenate- Specified by:
nextInputStream
in classAbstractConcatInputStream
- Returns:
- the next InputStream to concatenate
- Throws:
IOException
- if an error occurs while creating InputStream
-
-