|
Raw file gateway which provides access to the OMERO file repository. Note: methods on this service are protected by a DOWNLOAD restriction.
length
bytes of data at the
position
from the raw file into an array of
bytes.length
bytes of data from the specified
buf
byte array starting at at
position
to the raw file.This method manages the state of the service. This method will throw a SecurityViolation if for the current user context either the file is not readable or a {@code omero.constants.permissions.BINARYACCESS} restriction is in place.
Returns the current file id or null if none has been set.
Reads length
bytes of data at the
position
from the raw file into an array of
bytes.
Returns the size of the file on disk (not as stored in the database since that value will only be updated on {@code save}. If the file has not yet been written to, and therefore does not exist, a ResourceError will be thrown.
Limits the size of a file to the given length. If the file is already shorter than length, no action is taken in which case false is returned.
Writes length
bytes of data from the specified
buf
byte array starting at at
position
to the raw file.
Checks to see if a raw file exists with the file ID that the service was initialized with.
true
if there is an accessible file
within the original file repository with the
correct ID. Otherwise false
.
Saves the model::OriginalFile associated with the service if it has been modified. The returned valued should replace all instances of the model::OriginalFile in the client. If save has not been called, RawFileStore instances will save the model::OriginalFile object associated with it on {@code close}. See also ticket 1651 and ticket 2161.
|