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