Class DefaultDesignReader
- java.lang.Object
-
- fr.ens.biologie.genomique.eoulsan.design.io.DefaultDesignReader
-
- All Implemented Interfaces:
DesignReader
public class DefaultDesignReader extends Object implements DesignReader
This class allow to read a design file whatever the underlying design format.- Since:
- 2.0
- Author:
- Laurent Jourdren
-
-
Constructor Summary
Constructors Constructor Description DefaultDesignReader(DataFile file)Public constructor.DefaultDesignReader(File file)Public constructor.DefaultDesignReader(InputStream is)Public constructorDefaultDesignReader(String filename)Public constructor
-
-
-
Constructor Detail
-
DefaultDesignReader
public DefaultDesignReader(File file) throws FileNotFoundException
Public constructor.- Parameters:
file- file to read- Throws:
FileNotFoundException- if the file cannot be found
-
DefaultDesignReader
public DefaultDesignReader(DataFile file) throws IOException
Public constructor.- Parameters:
file- file to read- Throws:
IOException- if an error occurs while opening the file
-
DefaultDesignReader
public DefaultDesignReader(InputStream is) throws IOException
Public constructor- Parameters:
is- Input stream to read- Throws:
IOException- if an error occurs while reading the file
-
DefaultDesignReader
public DefaultDesignReader(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
-
-