Class AbstractMetaDataExtractor

    • Constructor Detail

      • AbstractMetaDataExtractor

        public AbstractMetaDataExtractor()
    • Method Detail

      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the object, which can be displayed in the GUI.

        Default implementation returns null.
        Specified by:
        getQuickInfo in interface QuickInfoSupporter
        Returns:
        null if no info available, otherwise short string
      • check

        protected void check​(File file)
        Checks whether the input can be used.

        Default implementation ensures that the file is available.
        Parameters:
        file - the file to check
      • doExtract

        protected abstract SpreadSheet doExtract​(File file)
                                          throws Exception
        Performs the actual meta-data extraction.
        Parameters:
        file - the file to process
        Returns:
        the meta-data
        Throws:
        Exception - if extraction fails
      • extract

        public SpreadSheet extract​(File file)
                            throws Exception
        Extracts the meta-data from the image.
        Parameters:
        file - the file to process
        Returns:
        the meta-data
        Throws:
        Exception - if extraction fails