Class 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 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 DataFile
        filename - filename
    • Method Detail

      • getDataFile

        public DataFile getDataFile()
      • canonicalize

        public fr.ens.biologie.genomique.kenetre.storage.DataPath canonicalize()
                                                                        throws IOException
        Specified by:
        canonicalize in interface fr.ens.biologie.genomique.kenetre.storage.DataPath
        Throws:
        IOException
      • exists

        public boolean exists()
        Specified by:
        exists in interface fr.ens.biologie.genomique.kenetre.storage.DataPath
      • getContentLength

        public long getContentLength()
        Specified by:
        getContentLength in interface fr.ens.biologie.genomique.kenetre.storage.DataPath
      • getLastModified

        public long getLastModified()
        Specified by:
        getLastModified in interface fr.ens.biologie.genomique.kenetre.storage.DataPath
      • getName

        public String getName()
        Specified by:
        getName in interface fr.ens.biologie.genomique.kenetre.storage.DataPath
      • getSource

        public String getSource()
        Specified by:
        getSource in interface fr.ens.biologie.genomique.kenetre.storage.DataPath
      • list

        public List<fr.ens.biologie.genomique.kenetre.storage.DataPath> list()
                                                                      throws IOException
        Specified by:
        list in interface fr.ens.biologie.genomique.kenetre.storage.DataPath
        Throws:
        IOException
      • rawCreate

        public OutputStream rawCreate()
                               throws IOException
        Specified by:
        rawCreate in interface fr.ens.biologie.genomique.kenetre.storage.DataPath
        Throws:
        IOException
      • rawOpen

        public InputStream rawOpen()
                            throws IOException
        Specified by:
        rawOpen in interface fr.ens.biologie.genomique.kenetre.storage.DataPath
        Throws:
        IOException
      • toFile

        public File toFile()
        Specified by:
        toFile in interface fr.ens.biologie.genomique.kenetre.storage.DataPath
      • copy

        public void copy​(fr.ens.biologie.genomique.kenetre.storage.DataPath output)
                  throws IOException
        Specified by:
        copy in interface fr.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 interface fr.ens.biologie.genomique.kenetre.storage.DataPath
        Throws:
        IOException
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object