Class DataFileStorage
- java.lang.Object
 - 
- fr.ens.biologie.genomique.kenetre.storage.AbstractFileStorage
 - 
- fr.ens.biologie.genomique.eoulsan.data.storages.DataFileStorage
 
 
 
- 
public class DataFileStorage extends fr.ens.biologie.genomique.kenetre.storage.AbstractFileStorageThis class define a storage using DataFile API.- Since:
 - 2.6
 - Author:
 - Laurent Jourdren
 
 
- 
- 
Constructor Summary
Constructors Constructor Description DataFileStorage(String rootPath, List<String> extensions)Constructor. 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataFilegetDataFile(String shortName)Get a Datafile related to a short nameFilegetFile(String shortName)Get a file related to a short nameprotected fr.ens.biologie.genomique.kenetre.storage.DataPathnewDataPath(fr.ens.biologie.genomique.kenetre.storage.DataPath parent, String filename)protected fr.ens.biologie.genomique.kenetre.storage.DataPathnewDataPath(String source) 
 - 
 
- 
- 
Method Detail
- 
newDataPath
protected fr.ens.biologie.genomique.kenetre.storage.DataPath newDataPath(String source)
- Specified by:
 newDataPathin classfr.ens.biologie.genomique.kenetre.storage.AbstractFileStorage
 
- 
newDataPath
protected fr.ens.biologie.genomique.kenetre.storage.DataPath newDataPath(fr.ens.biologie.genomique.kenetre.storage.DataPath parent, String filename)- Specified by:
 newDataPathin classfr.ens.biologie.genomique.kenetre.storage.AbstractFileStorage
 
- 
getDataFile
public DataFile getDataFile(String shortName) throws IOException
Get a Datafile related to a short name- Parameters:
 shortName- the short name of a file- Returns:
 - a DataFile
 - Throws:
 IOException- if the file cannot be found
 
- 
getFile
public File getFile(String shortName) throws IOException
Get a file related to a short name- Overrides:
 getFilein classfr.ens.biologie.genomique.kenetre.storage.AbstractFileStorage- Parameters:
 shortName- the short name of a file- Returns:
 - a DataFile
 - Throws:
 IOException- if the file cannot be found
 
 - 
 
 -