|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RawFileStore
Raw file gateway which provides access to the OMERO file repository.
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 |
ome.model.core.OriginalFile |
save()
Saves the OriginalFile associated with the service if it has
been modified. |
void |
setFileId(long fileId)
This method manages the state of the service. |
long |
size()
Returns the size of the file on disk (not as stored in the database since that value will only be updated on save() . |
boolean |
truncate(long length)
Limits the size of a file to the given length. |
void |
write(byte[] buf,
long position,
int length)
Delegates to FileBuffer |
Methods inherited from interface ome.api.StatefulServiceInterface |
---|
activate, close, getCurrentEventContext, passivate |
Method Detail |
---|
void setFileId(long fileId)
fileId
- an OriginalFile
id.boolean exists()
true
if there is an accessible file within the
original file repository with the correct ID. Otherwise
false
.
ome.conditions.ResourceError
- if there is a problem accessing the file due to
permissions errors within the repository or any other I/O error.byte[] read(long position, int length)
FileBuffer
FileBuffer.read(java.nio.ByteBuffer, long)
long size()
save()
.
boolean truncate(long length)
void write(byte[] buf, long position, int length)
FileBuffer
FileBuffer.write(java.nio.ByteBuffer, long)
ome.model.core.OriginalFile save()
OriginalFile
associated with the service if it has
been modified. The returned valued should replace all instances of the
OriginalFile
in the client.
If save has not been called, RawFileStore
instances will save the
OriginalFile
object associated with it on StatefulServiceInterface.close()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta4.2.1-r8614-Beta4.2-b41
Copyright © 2009 The University of Dundee. All Rights Reserved.