Class Eoulsan2DesignReader
- java.lang.Object
-
- fr.ens.biologie.genomique.eoulsan.design.io.Eoulsan2DesignReader
-
- All Implemented Interfaces:
DesignReader
public class Eoulsan2DesignReader extends Object implements DesignReader
This class define a design reader for Eoulsan 2 design file.- Since:
- 2.0
- Author:
- Xavier Bauquet
-
-
Constructor Summary
Constructors Constructor Description Eoulsan2DesignReader(DataFile file)Public constructor.Eoulsan2DesignReader(File file)Public constructor.Eoulsan2DesignReader(InputStream is)Public constructor.Eoulsan2DesignReader(String filename)Public constructor.
-
-
-
Constructor Detail
-
Eoulsan2DesignReader
public Eoulsan2DesignReader(File file) throws FileNotFoundException
Public constructor.- Parameters:
file- file to read- Throws:
FileNotFoundException- if the file cannot be found
-
Eoulsan2DesignReader
public Eoulsan2DesignReader(DataFile file) throws IOException
Public constructor.- Parameters:
file- file to read- Throws:
IOException- if the stream cannot be opened
-
Eoulsan2DesignReader
public Eoulsan2DesignReader(InputStream is) throws IOException
Public constructor.- Parameters:
is- Input stream to read- Throws:
IOException- if the stream cannot be opened
-
Eoulsan2DesignReader
public Eoulsan2DesignReader(String filename) throws FileNotFoundException
Public constructor.- Parameters:
filename- File to read- Throws:
FileNotFoundException- if the file doesn't exist
-
-
Method Detail
-
read
public Design read() throws IOException
Description copied from interface:DesignReaderRead the design.- Specified by:
readin interfaceDesignReader- Returns:
- a new Design object
- Throws:
IOException- if an error occurs while reading the design
-
-