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.DataPath
canonicalize()
int
compareTo(DataFileDataPath o)
void
copy(fr.ens.biologie.genomique.kenetre.storage.DataPath output)
OutputStream
create()
boolean
equals(Object obj)
boolean
exists()
long
getContentLength()
DataFile
getDataFile()
long
getLastModified()
String
getName()
String
getSource()
int
hashCode()
List<fr.ens.biologie.genomique.kenetre.storage.DataPath>
list()
InputStream
open()
OutputStream
rawCreate()
InputStream
rawOpen()
void
symlinkOrCopy(fr.ens.biologie.genomique.kenetre.storage.DataPath link)
File
toFile()
String
toString()
-
-
-
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:
canonicalize
in interfacefr.ens.biologie.genomique.kenetre.storage.DataPath
- Throws:
IOException
-
create
public OutputStream create() throws IOException
- Specified by:
create
in interfacefr.ens.biologie.genomique.kenetre.storage.DataPath
- Throws:
IOException
-
exists
public boolean exists()
- Specified by:
exists
in interfacefr.ens.biologie.genomique.kenetre.storage.DataPath
-
getContentLength
public long getContentLength()
- Specified by:
getContentLength
in interfacefr.ens.biologie.genomique.kenetre.storage.DataPath
-
getLastModified
public long getLastModified()
- Specified by:
getLastModified
in interfacefr.ens.biologie.genomique.kenetre.storage.DataPath
-
getName
public String getName()
- Specified by:
getName
in interfacefr.ens.biologie.genomique.kenetre.storage.DataPath
-
getSource
public String getSource()
- Specified by:
getSource
in interfacefr.ens.biologie.genomique.kenetre.storage.DataPath
-
list
public List<fr.ens.biologie.genomique.kenetre.storage.DataPath> list() throws IOException
- Specified by:
list
in interfacefr.ens.biologie.genomique.kenetre.storage.DataPath
- Throws:
IOException
-
open
public InputStream open() throws IOException
- Specified by:
open
in interfacefr.ens.biologie.genomique.kenetre.storage.DataPath
- Throws:
IOException
-
rawCreate
public OutputStream rawCreate() throws IOException
- Specified by:
rawCreate
in interfacefr.ens.biologie.genomique.kenetre.storage.DataPath
- Throws:
IOException
-
rawOpen
public InputStream rawOpen() throws IOException
- Specified by:
rawOpen
in interfacefr.ens.biologie.genomique.kenetre.storage.DataPath
- Throws:
IOException
-
toFile
public File toFile()
- Specified by:
toFile
in interfacefr.ens.biologie.genomique.kenetre.storage.DataPath
-
copy
public void copy(fr.ens.biologie.genomique.kenetre.storage.DataPath output) throws IOException
- Specified by:
copy
in 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:
symlinkOrCopy
in interfacefr.ens.biologie.genomique.kenetre.storage.DataPath
- Throws:
IOException
-
compareTo
public int compareTo(DataFileDataPath o)
- Specified by:
compareTo
in interfaceComparable<DataFileDataPath>
-
-