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 Details

    • 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 Details

    • getDataFile

      public DataFile getDataFile()
      Get the DataFile.
      Returns:
      the DataFile object
    • 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
    • create

      public OutputStream create() throws IOException
      Specified by:
      create 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
    • open

      public InputStream open() throws IOException
      Specified by:
      open 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
    • compareTo

      public int compareTo(DataFileDataPath o)
      Specified by:
      compareTo in interface Comparable<DataFileDataPath>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object