public class FileAnnotationWrapper extends AnnotationWrapper<FileAnnotationData> implements FileAnnotation
Wraps function calls to the FileAnnotationData contained.
data| Constructor and Description |
|---|
FileAnnotationWrapper(FileAnnotationData annotation)
Constructor of the AnnotationWrapper class.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
getDatasets, getDescription, getFolders, getImages, getLastModified, getNameSpace, getPlateAcquisitions, getPlates, getProjects, getScreens, getWells, setDescription, setNameSpaceasDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, getUpdated, saveAndUpdate, toString, wrap, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitasDataObjectcountAnnotationLinks, getDatasets, getDescription, getFolders, getImages, getLastModified, getNameSpace, getPlateAcquisitions, getPlates, getProjects, getScreens, getWells, setDescription, setNameSpacecanAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, distinct, flatten, getCreated, getElementsOf, getGroupId, getId, getOwner, getUpdated, saveAndUpdatepublic FileAnnotationWrapper(FileAnnotationData annotation)
annotation - FileAnnotationData to wrap.public String getOriginalMimetype()
getOriginalMimetype in interface FileAnnotationpublic String getServerFileMimetype()
getServerFileMimetype in interface FileAnnotationpublic String getFileFormat()
getFileFormat in interface FileAnnotationpublic String getFileKind()
getFileKind in interface FileAnnotationpublic File getAttachedFile()
getAttachedFile in interface FileAnnotationpublic String getFileName()
getFileName in interface FileAnnotationpublic String getFilePath()
getFilePath in interface FileAnnotationpublic long getFileSize()
getFileSize in interface FileAnnotationpublic long getFileID()
getFileID in interface FileAnnotationpublic File getFile(ConnectionHandler client, String path) throws IOException, ServiceException, AccessException
getFile in interface FileAnnotationclient - 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.public String getContentAsString()
getContentAsString in interface FileAnnotationAnnotationData.getContentAsString()public boolean isMovieFile()
true if it is a movie file. false otherwise.isMovieFile in interface FileAnnotationCopyright © 2020–2023 GReD. All rights reserved.