Klasse Unloader

java.lang.Object
de.zocher_regel.util.copy.AbstractCopier
de.zocher_regel.photo.Unloader
Alle implementierten Schnittstellen:
Runnable

public final class Unloader extends de.zocher_regel.util.copy.AbstractCopier
Unload file from camera to day directory. Example: F:\DCIM\nnnn\YY.JPG, last modified at 2019-12-10, is copied to D:\Fotos\2019\Canon\2019-12-10. A unloadPrefix IMG_, VID_ is omitted, so that other photos can be inserted.
  • Feldübersicht

    Von Klasse geerbte Felder de.zocher_regel.util.copy.AbstractCopier

    count, sourceDirPath, targetDirPath
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
    Unloader(Path sourceDirPath, Path targetDirPath)
    Create Unloader.
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    copy(File sourceFile)
    Copy from camera to local computer into directory of the day, which is created if missing.
    protected Path
    getTargetFilePath(File sourceFile)
     
    void
    run()
    Unload and ask the user to rename the directory just created.

    Von Klasse geerbte Methoden de.zocher_regel.util.copy.AbstractCopier

    appendQualFileName, setFromTxt, setToTxt, sourceTargetOverlap

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Konstruktordetails

    • Unloader

      public Unloader(Path sourceDirPath, Path targetDirPath) throws de.zocher_regel.util.UtilException
      Create Unloader. Compute date after last unloading from existing day directories.
      Parameter:
      sourceDirPath - typically directory on camera chip (DCIM)
      targetDirPath - the directory where the day directories are to be created in.
      Löst aus:
      PhotoException - if the date of last unloading cannot be determined.
      de.zocher_regel.util.UtilException
  • Methodendetails

    • copy

      public void copy(File sourceFile) throws de.zocher_regel.util.UtilException
      Copy from camera to local computer into directory of the day, which is created if missing.
      Setzt außer Kraft:
      copy in Klasse de.zocher_regel.util.copy.AbstractCopier
      Parameter:
      sourceFile - to be copied
      Löst aus:
      PhotoException - if the target path (the day directory) cannot be determined
      de.zocher_regel.util.UtilException
    • getTargetFilePath

      protected Path getTargetFilePath(File sourceFile) throws de.zocher_regel.util.UtilException
      Angegeben von:
      getTargetFilePath in Klasse de.zocher_regel.util.copy.AbstractCopier
      Löst aus:
      de.zocher_regel.util.UtilException
    • run

      public void run()
      Unload and ask the user to rename the directory just created. If wanted, create the default show and exifs in the target directory as well. This method is called by constructor only.
      Angegeben von:
      run in Schnittstelle Runnable
      Setzt außer Kraft:
      run in Klasse de.zocher_regel.util.copy.AbstractCopier