Class PhotoMetaUpdater<T>
java.lang.Object
be.gaudry.model.file.renamer.parsers.AbstractFileParser<T>
be.gaudry.model.file.renamer.parsers.AbstractPhotoMetaParser<T>
be.gaudry.model.file.renamer.parsers.PhotoMetaUpdater<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
- Since:
- 1.0 Sept 03, 2008
- Author:
- Steph GAUDRY TODO: create a new parser, with "auto adjust dates" feature
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected boolean
rename(AbstractBrolWorker<T> bgw, File file, int percent)
void
void
setAuthorTitle(String authorTitle)
void
setCopyright(String copyright)
void
setDayLight(boolean daylight)
void
setFilterByModel(String filterBymodel)
void
setKeywords(String keywords)
void
setNewDate(Date newDateReference)
void
setSaveMethod(com.thebuzzmedia.exiftool.Format saveMethodFormat)
void
setShift(long shift)
void
setTimeZone(TimeZone timezone, boolean updateDateWithTime, boolean useGPSDateIfExists)
void
setUpdateDayLight(boolean updateDaylight)
void
setUsageTerms(String usageTerms)
Methods inherited from class be.gaudry.model.file.renamer.parsers.AbstractPhotoMetaParser
doAfterParsing, getExifTool
Methods inherited from class be.gaudry.model.file.renamer.parsers.AbstractFileParser
addFile, clearFiles, getPercent, getProgressMax, isTestOnly, rename, setTestOnly
-
Constructor Details
-
PhotoMetaUpdater
public PhotoMetaUpdater()
-
-
Method Details
-
doBeforeParsing
protected void doBeforeParsing()- Overrides:
doBeforeParsing
in classAbstractFileParser<T>
-
rename
- Specified by:
rename
in classAbstractFileParser<T>
- Parameters:
bgw
-AbstractBrolWorker
to perform cancel if needed, and report progressfile
- file to checkpercent
- Progress percentage- Returns:
- true if we must stop the parsing of current directory, false otherwise
-
setTimeZone
-
setShift
public void setShift(long shift) -
setFilterByModel
-
setUpdateDayLight
public void setUpdateDayLight(boolean updateDaylight) -
setDayLight
public void setDayLight(boolean daylight) -
setArtist
-
setCopyright
-
setUsageTerms
-
setKeywords
-
setAuthorTitle
-
setNewDate
-
setSaveMethod
public void setSaveMethod(com.thebuzzmedia.exiftool.Format saveMethodFormat)
-