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, setNameSpace
asDataObject, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, getUpdated, saveAndUpdate, toString, wrap, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
asDataObject
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
public FileAnnotationWrapper(FileAnnotationData annotation)
annotation
- FileAnnotationData to wrap.public String getOriginalMimetype()
getOriginalMimetype
in interface FileAnnotation
public String getServerFileMimetype()
getServerFileMimetype
in interface FileAnnotation
public String getFileFormat()
getFileFormat
in interface FileAnnotation
public String getFileKind()
getFileKind
in interface FileAnnotation
public File getAttachedFile()
getAttachedFile
in interface FileAnnotation
public String getFileName()
getFileName
in interface FileAnnotation
public String getFilePath()
getFilePath
in interface FileAnnotation
public long getFileSize()
getFileSize
in interface FileAnnotation
public long getFileID()
getFileID
in interface FileAnnotation
public File getFile(ConnectionHandler client, String path) throws IOException, ServiceException, AccessException
getFile
in interface FileAnnotation
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.public String getContentAsString()
getContentAsString
in interface FileAnnotation
AnnotationData.getContentAsString()
public boolean isMovieFile()
true
if it is a movie file. false
otherwise.isMovieFile
in interface FileAnnotation
Copyright © 2020–2023 GReD. All rights reserved.