Class DataFileDataPath
- java.lang.Object
-
- fr.ens.biologie.genomique.eoulsan.data.storages.DataFileDataPath
-
- All Implemented Interfaces:
fr.ens.biologie.genomique.kenetre.storage.DataPath,Comparable<DataFileDataPath>
public class DataFileDataPath extends Object implements fr.ens.biologie.genomique.kenetre.storage.DataPath, Comparable<DataFileDataPath>
This class define a bridge between Kenetre DataPath objects and Eoulsan DataFile objects.- Since:
- 2.6
- Author:
- Laurent Jourdren
-
-
Constructor Summary
Constructors Constructor Description DataFileDataPath(DataFile file)Constructor.DataFileDataPath(fr.ens.biologie.genomique.kenetre.storage.DataPath parent, String filename)Constructor.DataFileDataPath(String source)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description fr.ens.biologie.genomique.kenetre.storage.DataPathcanonicalize()intcompareTo(DataFileDataPath o)voidcopy(fr.ens.biologie.genomique.kenetre.storage.DataPath output)OutputStreamcreate()booleanequals(Object obj)booleanexists()longgetContentLength()DataFilegetDataFile()longgetLastModified()StringgetName()StringgetSource()inthashCode()List<fr.ens.biologie.genomique.kenetre.storage.DataPath>list()InputStreamopen()OutputStreamrawCreate()InputStreamrawOpen()voidsymlinkOrCopy(fr.ens.biologie.genomique.kenetre.storage.DataPath link)FiletoFile()StringtoString()
-
-
-
Constructor Detail
-
DataFileDataPath
public DataFileDataPath(String source)
Constructor.- Parameters:
source- source of the DataFile
-
DataFileDataPath
public DataFileDataPath(DataFile file)
Constructor.- Parameters:
file- DataFile object to wrap
-
DataFileDataPath
public DataFileDataPath(fr.ens.biologie.genomique.kenetre.storage.DataPath parent, String filename)Constructor.- Parameters:
parent- parent DataFilefilename- filename
-
-
Method Detail
-
getDataFile
public DataFile getDataFile()
-
canonicalize
public fr.ens.biologie.genomique.kenetre.storage.DataPath canonicalize() throws IOException- Specified by:
canonicalizein interfacefr.ens.biologie.genomique.kenetre.storage.DataPath- Throws:
IOException
-
create
public OutputStream create() throws IOException
- Specified by:
createin interfacefr.ens.biologie.genomique.kenetre.storage.DataPath- Throws:
IOException
-
exists
public boolean exists()
- Specified by:
existsin interfacefr.ens.biologie.genomique.kenetre.storage.DataPath
-
getContentLength
public long getContentLength()
- Specified by:
getContentLengthin interfacefr.ens.biologie.genomique.kenetre.storage.DataPath
-
getLastModified
public long getLastModified()
- Specified by:
getLastModifiedin interfacefr.ens.biologie.genomique.kenetre.storage.DataPath
-
getName
public String getName()
- Specified by:
getNamein interfacefr.ens.biologie.genomique.kenetre.storage.DataPath
-
getSource
public String getSource()
- Specified by:
getSourcein interfacefr.ens.biologie.genomique.kenetre.storage.DataPath
-
list
public List<fr.ens.biologie.genomique.kenetre.storage.DataPath> list() throws IOException
- Specified by:
listin interfacefr.ens.biologie.genomique.kenetre.storage.DataPath- Throws:
IOException
-
open
public InputStream open() throws IOException
- Specified by:
openin interfacefr.ens.biologie.genomique.kenetre.storage.DataPath- Throws:
IOException
-
rawCreate
public OutputStream rawCreate() throws IOException
- Specified by:
rawCreatein interfacefr.ens.biologie.genomique.kenetre.storage.DataPath- Throws:
IOException
-
rawOpen
public InputStream rawOpen() throws IOException
- Specified by:
rawOpenin interfacefr.ens.biologie.genomique.kenetre.storage.DataPath- Throws:
IOException
-
toFile
public File toFile()
- Specified by:
toFilein interfacefr.ens.biologie.genomique.kenetre.storage.DataPath
-
copy
public void copy(fr.ens.biologie.genomique.kenetre.storage.DataPath output) throws IOException- Specified by:
copyin interfacefr.ens.biologie.genomique.kenetre.storage.DataPath- Throws:
IOException
-
symlinkOrCopy
public void symlinkOrCopy(fr.ens.biologie.genomique.kenetre.storage.DataPath link) throws IOException- Specified by:
symlinkOrCopyin interfacefr.ens.biologie.genomique.kenetre.storage.DataPath- Throws:
IOException
-
compareTo
public int compareTo(DataFileDataPath o)
- Specified by:
compareToin interfaceComparable<DataFileDataPath>
-
-