public class RawFileStoreServiceImpl extends Object implements RawFileStoreService
Constructor and Description |
---|
RawFileStoreServiceImpl(omero.api.RawFileStorePrx rawFileStorePrx)
Create the ImageService passing the gateway.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public RawFileStoreServiceImpl(omero.api.RawFileStorePrx rawFileStorePrx)
gatewayFactory
- To generate new instances of the
RenderingEngineGateway.public boolean exists(long fileId) throws omero.ServerError
RawFileStoreService
exists
in interface RawFileStoreService
fileId
- id of the file to work on,omero.ServerError
public byte[] read(long fileId, long position, int length) throws omero.ServerError
RawFileStoreService
read
in interface RawFileStoreService
fileId
- id of the file to work on,position
- starting position to read from.omero.ServerError
public void write(long fileId, byte[] buf, long position, int length) throws omero.ServerError
RawFileStoreService
write
in interface RawFileStoreService
fileId
- id of the file to work on,buf
- see above.position
- see above.length
- see above.omero.ServerError
Version: 4.4.12-ice34-b116
Copyright © 2014 The University of Dundee & Open Microscopy Environment. All Rights Reserved.