public interface FileAnnotation extends Annotation
Modifier and Type | Method and Description |
---|---|
FileAnnotationData |
asDataObject()
Returns an
FileAnnotationData corresponding to the handled object. |
File |
getAttachedFile()
Returns the file to upload to the server.
|
String |
getContentAsString()
Returns the absolute path to the file
|
File |
getFile(ConnectionHandler client,
String path)
Returns the original file.
|
String |
getFileFormat()
Returns the format of the uploaded file.
|
long |
getFileID()
Returns the ID of the file.
|
String |
getFileKind()
Returns a user readable description of the file.
|
String |
getFileName()
Returns the name of the file.
|
String |
getFilePath()
Returns the absolute path to the file.
|
long |
getFileSize()
Returns the size of the file.
|
String |
getOriginalMimetype()
Returns the format of the original file.
|
String |
getServerFileMimetype()
Returns the file format as defined by the specification, corresponding to the file extension.
|
boolean |
isMovieFile()
Returns
true if it is a movie file. |
countAnnotationLinks, getDatasets, getDescription, getFolders, getImages, getLastModified, getNameSpace, getPlateAcquisitions, getPlates, getProjects, getScreens, getWells, setDescription, setNameSpace
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, distinct, flatten, getCreated, getElementsOf, getGroupId, getId, getOwner, getUpdated, saveAndUpdate
FileAnnotationData asDataObject()
FileAnnotationData
corresponding to the handled object.asDataObject
in interface Annotation
asDataObject
in interface RemoteObject
String getOriginalMimetype()
String getServerFileMimetype()
String getFileFormat()
String getFileKind()
File getAttachedFile()
String getFileName()
String getFilePath()
long getFileSize()
long getFileID()
File getFile(ConnectionHandler client, String path) throws IOException, ServiceException, AccessException
client
- The client handling the connection.path
- The path where the file will be saved.ServiceException
- Cannot connect to OMERO.AccessException
- Cannot access data.IOException
- Cannot write to the file.String getContentAsString()
FileAnnotationData.getContentAsString()
boolean isMovieFile()
true
if it is a movie file. false
otherwise.Copyright © 2020–2023 GReD. All rights reserved.