Class AbstractEoulsanRuntime
java.lang.Object
fr.ens.biologie.genomique.eoulsan.AbstractEoulsanRuntime
- Direct Known Subclasses:
HadoopEoulsanRuntime,LocalEoulsanRuntime
This class define an abstract EoulsanRuntime.
- Since:
- 1.0
- Author:
- Laurent Jourdren
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThis Enum define the Eoulsan execution mode. -
Method Summary
Modifier and TypeMethodDescriptioncreateFileInTempDir(String filename) Create a file in the temporary directory.Create a new temporary directory.createTempDir(String prefix) Create a new temporary directory.createTempFile(String prefix, String suffix) Create a new temporary file.abstract InputStreamgetInputStream(String dataSource) Create an InputStream to load data.getMode()Get Eoulsan mode.abstract OutputStreamgetOutputStream(String dataSource) Create an OutputStream to load data.abstract InputStreamgetRawInputStream(String dataSource) Create a raw InputStream (without decompression of input data) to load data.Get Settings.abstract FileGet the temporary directory.
-
Method Details
-
getSettings
Get Settings.- Returns:
- a Settings object
-
getTempDirectory
Get the temporary directory.- Returns:
- the temporary directory as a File object
-
getMode
Get Eoulsan mode.- Returns:
- the Eoulsan mode
-
getInputStream
Create an InputStream to load data.- Parameters:
dataSource- the source of the data to load- Returns:
- an InputStream corresponding to the source
- Throws:
IOException- if an error occurs the InputStream
-
getRawInputStream
Create a raw InputStream (without decompression of input data) to load data.- Parameters:
dataSource- the source of the data to load- Returns:
- an InputStream corresponding to the source
- Throws:
IOException- if an error occurs the InputStream
-
getOutputStream
Create an OutputStream to load data.- Parameters:
dataSource- the source of the data to load- Returns:
- an OutputStream corresponding to the source
- Throws:
IOException- if an error occurs the OutputStream
-
createTempDir
Create a new temporary directory.- Returns:
- the new directory
- Throws:
IOException- if there is an error creating the temporary directory
-
createTempDir
Create a new temporary directory.- Parameters:
prefix- prefix of the temporary directory- Returns:
- the new directory
- Throws:
IOException- if there is an error creating the temporary directory
-
createTempFile
Create a new temporary file.- Parameters:
prefix- Prefix of the temporary filesuffix- suffix of the temporary file- Returns:
- the new temporary file
- Throws:
IOException- if there is an error creating the temporary directory
-
createFileInTempDir
Create a file in the temporary directory.- Parameters:
filename- The filename to create- Returns:
- The new File
-