Class FileAnnotationWrapper

    • Constructor Detail

      • FileAnnotationWrapper

        public FileAnnotationWrapper​(FileAnnotationData annotation)
        Constructor of the GenericAnnotationWrapper class.
        Parameters:
        annotation - Annotation to be contained.
    • Method Detail

      • getOriginalMimetype

        public java.lang.String getOriginalMimetype()
        Returns the format of the original file.
        Returns:
        See above.
      • getServerFileMimetype

        public java.lang.String getServerFileMimetype()
        Returns the file format as defined by the specification, corresponding to the file extension.
        Returns:
        See above.
      • getFileFormat

        public java.lang.String getFileFormat()
        Returns the format of the uploaded file.
        Returns:
        See above.
      • getFileKind

        public java.lang.String getFileKind()
        Returns a user readable description of the file.
        Returns:
        See above.
      • getAttachedFile

        public java.io.File getAttachedFile()
        Returns the file to upload to the server.
        Returns:
        See above.
      • getFileName

        public java.lang.String getFileName()
        Returns the name of the file.
        Returns:
        See above.
      • getFilePath

        public java.lang.String getFilePath()
        Returns the absolute path to the file.
        Returns:
        See above.
      • getFileSize

        public long getFileSize()
        Returns the size of the file.
        Returns:
        See above.
      • getFileID

        public long getFileID()
        Returns the id of the file.
        Returns:
        See above.
      • getFile

        public java.io.File getFile​(Client client,
                                    java.lang.String path)
                             throws java.io.IOException,
                                    ServiceException,
                                    OMEROServerError
        Returns the original file.
        Parameters:
        client - The client handling the connection.
        path - The path where the file will be saved.
        Returns:
        See above.
        Throws:
        ServiceException - Cannot connect to OMERO.
        java.io.IOException - Cannot write to the file.
        OMEROServerError - Server error.
      • isMovieFile

        public boolean isMovieFile()
        Returns true if it is a movie file. false otherwise.
        Returns:
        See above.