Class DesignFormatFinderInputStream
java.lang.Object
java.io.InputStream
fr.ens.biologie.genomique.eoulsan.design.io.DesignFormatFinderInputStream
- All Implemented Interfaces:
Closeable,AutoCloseable
This class allow to automatically detect the format of a design file.
- Since:
- 2.0
- Author:
- Laurent Jourdren
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.io.InputStream
available, mark, markSupported, nullInputStream, read, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo
-
Constructor Details
-
DesignFormatFinderInputStream
Public constructor.- Parameters:
is- InputStream to read
-
-
Method Details
-
getDesignFormatVersion
Get the format of the data to read.- Returns:
- The format of the data to read
- Throws:
IOException- if an error occurs while reading data
-
getDesignReader
Get the DesignReader for the data.- Returns:
- the DesignReader for the data
- Throws:
IOException- if an error occurs while reading data
-
read
- Specified by:
readin classInputStream- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classInputStream- Throws:
IOException
-