ome.io.nio
Class OriginalFilesService

java.lang.Object
  extended by ome.io.nio.AbstractFileSystemService
      extended by ome.io.nio.OriginalFilesService

public class OriginalFilesService
extends AbstractFileSystemService

Raw file service which provides access to FileBuffers.

Since:
OMERO3.0
Version:
3.0 (Internal version: $Revision: 2789 $ $Date: 2005/06/08 15:21:59 $)
Author:
Chris Allan      callan@blackcat.ca

Field Summary
 
Fields inherited from class ome.io.nio.AbstractFileSystemService
FILES_PATH, PIXELS_PATH, ROOT_DEFAULT, THUMBNAILS_PATH
 
Constructor Summary
OriginalFilesService(String path)
          Constructor
 
Method Summary
 boolean exists(ome.model.core.OriginalFile file)
          Returns whether or not an OriginalFile exists on disk.
 FileBuffer getFileBuffer(ome.model.core.OriginalFile file)
          Returns FileBuffer based on OriginalFile path
 void removeFiles(List<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, getPixelsPath, getThumbnailPath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OriginalFilesService

public OriginalFilesService(String path)
Constructor

Parameters:
path -
Method Detail

getFileBuffer

public FileBuffer getFileBuffer(ome.model.core.OriginalFile file)
Returns FileBuffer based on OriginalFile path

Parameters:
file -
Returns:
FileBuffer

removeFiles

public void removeFiles(List<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.


OmeroJava Api

Version: Beta-4.2.0-r7571-b29

Copyright © 2009 The University of Dundee. All Rights Reserved.