ome.api
Interface RawFileStore

All Superinterfaces:
ServiceInterface, StatefulServiceInterface
All Known Implementing Classes:
RawFileBean

public interface RawFileStore
extends StatefulServiceInterface

Raw file gateway which provides access to the OMERO file repository.

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

Method Summary
 boolean exists()
          Checks to see if a raw file exists with the file ID that the service was initialized with.
 byte[] read(long position, int length)
          Delegates to FileBuffer
 void setFileId(long fileId)
          This method manages the state of the service.
 void write(byte[] buf, long position, int length)
          Delegates to FileBuffer
 
Methods inherited from interface ome.api.StatefulServiceInterface
activate, close, getCurrentEventContext, passivate
 

Method Detail

setFileId

void setFileId(long fileId)
This method manages the state of the service.

Parameters:
fileId - an OriginalFile id.

exists

boolean exists()
Checks to see if a raw file exists with the file ID that the service was initialized with.

Returns:
true if there is an accessible file within the original file repository with the correct ID. Otherwise false.
Throws:
ResourceError - if there is a problem accessing the file due to permissions errors within the repository or any other I/O error.

read

byte[] read(long position,
            int length)
Delegates to FileBuffer

See Also:
FileBuffer.read(java.nio.ByteBuffer, long)

write

void write(byte[] buf,
           long position,
           int length)
Delegates to FileBuffer

See Also:
FileBuffer.write(java.nio.ByteBuffer, long)


OmeroJava Api

Version: Beta-4.1.1-r5927-b91

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