Enum-Klasse ExifExtractorToolEnum

java.lang.Object
java.lang.Enum<ExifExtractorToolEnum>
de.zocher_regel.photo.ExifExtractorToolEnum
Alle implementierten Schnittstellen:
Serializable, Comparable<ExifExtractorToolEnum>, Constable

public enum ExifExtractorToolEnum extends Enum<ExifExtractorToolEnum>
An external program (IrfanView, Exiftool) is used to extract the exif information from the photo. Exiftool is preferred, because it accepts many file types and is faster.
  • Enum-Konstanten - Details

    • Exiftool

      public static final ExifExtractorToolEnum Exiftool
      The most common used tool for EXIF extracting.
    • IrfanView

      public static final ExifExtractorToolEnum IrfanView
      If Exiftool is not available, IrfanView can substitute it.
    • Unknown

      public static final ExifExtractorToolEnum Unknown
      The extractor which shall be used is determined automatically by availability.
  • Methodendetails

    • values

      public static ExifExtractorToolEnum[] values()
      Gibt ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration zurück.
      Gibt zurück:
      ein Array mit den Konstanten dieser Enum-Klasse in der Reihenfolge ihrer Deklaration
    • valueOf

      public static ExifExtractorToolEnum valueOf(String name)
      Gibt die Enum-Konstante dieser Klasse mit dem angegebenen Namen zurück. Die Zeichenfolge muss exakt mit einer ID übereinstimmen, mit der eine Enum-Konstante in dieser Klasse deklariert wird. (Zusätzliche Leerzeichen sind nicht zulässig.)
      Parameter:
      name - Name der zurückzugebenden Enumerationskonstante.
      Gibt zurück:
      Enumerationskonstante mit dem angegebenen Namen
      Löst aus:
      IllegalArgumentException - wenn diese Enum-Klasse keine Konstante mit dem angegebenen Namen enthält
      NullPointerException - wenn das Argument nicht angegeben wird
    • getInstance

      public static ExifExtractorToolEnum getInstance() throws de.zocher_regel.util.UtilException
      Select the preferred available ExifExtractionTool.
      Gibt zurück:
      if the extraction tool has been changed.
      Löst aus:
      de.zocher_regel.util.UtilException - if no extraction tool is invalid or has been installed
    • extract

      int extract(ShowRec showRec) throws de.zocher_regel.util.UtilException
      Not used.
      Parameter:
      showRec - contains the info of the photo where the EXIF info has to extracted from
      Gibt zurück:
      returnCode, 0 == ok
      Löst aus:
      de.zocher_regel.util.UtilException - in case of error
    • isInstalled

      boolean isInstalled()
      Default method: no extraction tool has been installed
      Gibt zurück:
      if the extraction tool has been installed.
    • update

      public boolean update(ShowRec showRec, List<ShowRec> optionList) throws de.zocher_regel.util.UtilException
      Add the information found in an EXIF file to a photo file. Only exiftool can edit the photo file; it has not been implemented by IrfanView.
      Parameter:
      showRec - qualified path of the photo file "D:\Fotos\2024\Canon\2024-12-08 XYZ\1235.jpg"
      optionList - of Exiftool options like ";-GPSLatitude=52.074718", if the tag is missing, "ImageDescription" is assumed as default. GPSLatitude, GPSLongitude, ImageDescription may be abbreviated La, Lo, I.
      Gibt zurück:
      if the tool has been installed
      Löst aus:
      de.zocher_regel.util.UtilException - if the function has not been implemented or something else has gone wrong.