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
ConstructorsConstructorDescriptionDataFileDataPath(DataFile file) Constructor.DataFileDataPath(fr.ens.biologie.genomique.kenetre.storage.DataPath parent, String filename) Constructor.DataFileDataPath(String source) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionfr.ens.biologie.genomique.kenetre.storage.DataPathintvoidcopy(fr.ens.biologie.genomique.kenetre.storage.DataPath output) create()booleanbooleanexists()longGet the DataFile.longgetName()inthashCode()List<fr.ens.biologie.genomique.kenetre.storage.DataPath>list()open()rawOpen()voidsymlinkOrCopy(fr.ens.biologie.genomique.kenetre.storage.DataPath link) toFile()toString()
-
Constructor Details
-
DataFileDataPath
Constructor.- Parameters:
source- source of the DataFile
-
DataFileDataPath
Constructor.- Parameters:
file- DataFile object to wrap
-
DataFileDataPath
Constructor.- Parameters:
parent- parent DataFilefilename- filename
-
-
Method Details
-
getDataFile
Get the DataFile.- Returns:
- the DataFile object
-
canonicalize
- Specified by:
canonicalizein interfacefr.ens.biologie.genomique.kenetre.storage.DataPath- Throws:
IOException
-
create
- 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
- Specified by:
getNamein interfacefr.ens.biologie.genomique.kenetre.storage.DataPath
-
getSource
- Specified by:
getSourcein interfacefr.ens.biologie.genomique.kenetre.storage.DataPath
-
list
- Specified by:
listin interfacefr.ens.biologie.genomique.kenetre.storage.DataPath- Throws:
IOException
-
open
- Specified by:
openin interfacefr.ens.biologie.genomique.kenetre.storage.DataPath- Throws:
IOException
-
rawCreate
- Specified by:
rawCreatein interfacefr.ens.biologie.genomique.kenetre.storage.DataPath- Throws:
IOException
-
rawOpen
- Specified by:
rawOpenin interfacefr.ens.biologie.genomique.kenetre.storage.DataPath- Throws:
IOException
-
toFile
- Specified by:
toFilein interfacefr.ens.biologie.genomique.kenetre.storage.DataPath
-
copy
- 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
- Specified by:
compareToin interfaceComparable<DataFileDataPath>
-
hashCode
public int hashCode() -
equals
-
toString
-