Package ome.io.nio

Class OriginalFilesService


  • public class OriginalFilesService
    extends AbstractFileSystemService
    Raw file service which provides access to FileBuffers.
    Since:
    OMERO3.0
    • Constructor Detail

      • OriginalFilesService

        @Deprecated
        public OriginalFilesService​(java.lang.String path)
        Deprecated.
        Constructor
        Parameters:
        path -
      • OriginalFilesService

        public OriginalFilesService​(java.lang.String path,
                                    boolean isReadOnlyRepo)
    • Method Detail

      • getFileBuffer

        public FileBuffer getFileBuffer​(ome.model.core.OriginalFile file,
                                        java.lang.String mode)
        Returns FileBuffer based on OriginalFile path
        Parameters:
        file -
        Returns:
        FileBuffer
      • removeFiles

        public void removeFiles​(java.util.List<java.lang.Long> fileIds)
        Removes files from data repository based on a parameterized List of Long file ids
        Parameters:
        fileIds - - Long file keys to be deleted
        Throws:
        ome.conditions.ResourceError - If deletion fails.
      • exists

        public boolean exists​(ome.model.core.OriginalFile file)
        Returns whether or not an OriginalFile exists on disk.
        Parameters:
        file - The original file metadata.
        Returns:
        See above.