ome.services.blitz.gateway.services
Interface RawFileStoreService

All Known Implementing Classes:
RawFileStoreServiceImpl

public interface RawFileStoreService

Since:
OME3.0
Version:
3.0 (Internal version: $Revision: $Date: $)
Author:
Jean-Marie Burel      j.burel@dundee.ac.uk, Donald MacDonald      donald@lifesci.dundee.ac.uk

Method Summary
 boolean exists(long fileId)
          Does the file exist in the RawFileStore.
 byte[] read(long fileId, long position, int length)
          Read from the file in the rawFileStore.
 void write(long fileId, byte[] buf, long position, int length)
          Write the contents of the buffer to the the file starting from position and for length bytes.
 

Method Detail

read

byte[] read(long fileId,
            long position,
            int length)
            throws omero.ServerError
Read from the file in the rawFileStore.

Parameters:
fileId - id of the file to work on,
position - starting position to read from.
length -
Returns:
see above.
Throws:
DSOutOfServiceException
omero.ServerError

write

void write(long fileId,
           byte[] buf,
           long position,
           int length)
           throws omero.ServerError
Write the contents of the buffer to the the file starting from position and for length bytes.

Parameters:
fileId - id of the file to work on,
buf - see above.
position - see above.
length - see above.
Throws:
DSOutOfServiceException
omero.ServerError

exists

boolean exists(long fileId)
               throws omero.ServerError
Does the file exist in the RawFileStore.

Parameters:
fileId - id of the file to work on,
Returns:
see above.
Throws:
DSOutOfServiceException
omero.ServerError


OmeroJava Api

Version: 4.3.4-dbcbce5a-b4

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