Package ome.io.nio
Class OriginalFilesService
- java.lang.Object
-
- ome.io.nio.AbstractFileSystemService
-
- ome.io.nio.OriginalFilesService
-
public class OriginalFilesService extends AbstractFileSystemService
Raw file service which provides access toFileBuffers
.- Since:
- OMERO3.0
-
-
Field Summary
-
Fields inherited from class ome.io.nio.AbstractFileSystemService
FILES_PATH, PIXELS_PATH, ROOT_DEFAULT, THUMBNAILS_PATH
-
-
Constructor Summary
Constructors Constructor Description OriginalFilesService(java.lang.String path)
Deprecated.OriginalFilesService(java.lang.String path, boolean isReadOnlyRepo)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
exists(ome.model.core.OriginalFile file)
Returns whether or not an OriginalFile exists on disk.FileBuffer
getFileBuffer(ome.model.core.OriginalFile file, java.lang.String mode)
Returns FileBuffer based on OriginalFile pathvoid
removeFiles(java.util.List<java.lang.Long> fileIds)
Removes files from data repository based on a parameterized List of Long file ids-
Methods inherited from class ome.io.nio.AbstractFileSystemService
createSubpath, getFilesPath, getPath, getPixelsDirectory, getPixelsPath, getThumbnailPath
-
-
-
-
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.
-
-