Class PhotoMetaUpdater<T>


public class PhotoMetaUpdater<T> extends AbstractPhotoMetaParser<T>
process :
  • create map<String camera_maker_model, long offset>
  • parse files, if not present in map, check if gps date exists
    • if gps date exists, compute difference between exif DateTimeOriginal and GPSTimeStamp, and put it in the map as offset
  • Parse file again and for each, adapt dates with computed offset
Improvement? field maker_model. Assuming all files comes from the same model and need same adjustment. For the first parsing, end parsing after the first GPS date found.
Since:
1.0 Sept 03, 2008
Author:
Steph GAUDRY TODO: create a new parser, with "auto adjust dates" feature
  • Constructor Details

    • PhotoMetaUpdater

      public PhotoMetaUpdater()
  • Method Details

    • doBeforeParsing

      protected void doBeforeParsing()
      Overrides:
      doBeforeParsing in class AbstractFileParser<T>
    • rename

      protected boolean rename(AbstractBrolWorker<T> bgw, File file, int percent)
      Specified by:
      rename in class AbstractFileParser<T>
      Parameters:
      bgw - AbstractBrolWorker to perform cancel if needed, and report progress
      file - file to check
      percent - Progress percentage
      Returns:
      true if we must stop the parsing of current directory, false otherwise
    • setTimeZone

      public void setTimeZone(TimeZone timezone, boolean updateDateWithTime, boolean useGPSDateIfExists)
    • setShift

      public void setShift(long shift)
    • setFilterByModel

      public void setFilterByModel(String filterBymodel)
    • setUpdateDayLight

      public void setUpdateDayLight(boolean updateDaylight)
    • setDayLight

      public void setDayLight(boolean daylight)
    • setArtist

      public void setArtist(String artist)
    • setCopyright

      public void setCopyright(String copyright)
    • setUsageTerms

      public void setUsageTerms(String usageTerms)
    • setKeywords

      public void setKeywords(String keywords)
    • setAuthorTitle

      public void setAuthorTitle(String authorTitle)
    • setNewDate

      public void setNewDate(Date newDateReference)
    • setSaveMethod

      public void setSaveMethod(com.thebuzzmedia.exiftool.Format saveMethodFormat)