ome.services.blitz.gateway.services.impl
Class RawFileStoreServiceImpl

java.lang.Object
  extended by ome.services.blitz.gateway.services.impl.RawFileStoreServiceImpl
All Implemented Interfaces:
RawFileStoreService

public class RawFileStoreServiceImpl
extends Object
implements 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

Constructor Summary
RawFileStoreServiceImpl(omero.api.RawFileStorePrx rawFileStorePrx)
          Create the ImageService passing the gateway.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RawFileStoreServiceImpl

public RawFileStoreServiceImpl(omero.api.RawFileStorePrx rawFileStorePrx)
Create the ImageService passing the gateway.

Parameters:
gatewayFactory - To generate new instances of the RenderingEngineGateway.
Method Detail

exists

public boolean exists(long fileId)
               throws omero.ServerError
Description copied from interface: RawFileStoreService
Does the file exist in the RawFileStore.

Specified by:
exists in interface RawFileStoreService
Parameters:
fileId - id of the file to work on,
Returns:
see above.
Throws:
omero.ServerError

read

public byte[] read(long fileId,
                   long position,
                   int length)
            throws omero.ServerError
Description copied from interface: RawFileStoreService
Read from the file in the rawFileStore.

Specified by:
read in interface RawFileStoreService
Parameters:
fileId - id of the file to work on,
position - starting position to read from.
Returns:
see above.
Throws:
omero.ServerError

write

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

Specified by:
write in interface RawFileStoreService
Parameters:
fileId - id of the file to work on,
buf - see above.
position - see above.
length - see above.
Throws:
omero.ServerError


OmeroJava Api

Version: Beta-4.2.0-r7571-b29

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