Class ETOperation


public class ETOperation extends ETOps
This class models the command-line of exiftool. It extends the auto-generated class ETOps with a number of methods for tag retrival and tag manipulation. Since it is not efficient to translate the original exiftool commandline-options directly to java-methods, the methods of this class don't follow the usual 1:1 relationship between method-names and commandline option-names.
  • Constructor Details

    • ETOperation

      public ETOperation()
  • Method Details

    • getTags

      public ETOperation getTags(String... pTags)
      Query all tags with the given tag-names. This method translates to the -TAG commandline options. See the exiftool documentation for details.
      Parameters:
      pTags - the given tag-names
      Returns:
      this ETOperation
    • omitTags

      public ETOperation omitTags(String... pTags)
      Omit all tags with the given tag-names. This method translates to the --TAG commandline options. See the exiftool documentation for details.
      Parameters:
      pTags - tags to be omitted
      Returns:
      this ETOperation
      See Also:
    • setTags

      public ETOperation setTags(String... pTagExpressions)
      Set all tags with the given tag-names. This method translates to the -TAG[+-][<]=Value commandline options. See the exiftool documentation for details.
      Parameters:
      pTagExpressions - A list in the form Tag[+-]=[<][Value],...
      Returns:
      this ETOperation
    • setTag

      public ETOperation setTag(String pTag, String pFilename)
      Set tag with the content read from a file. This method translates to the -TAG<=Filename commandline option. See the exiftool documentation for details.
      Parameters:
      pTag - A tag name
      pFilename - A filename or filename-template
      Returns:
      this ETOperation
    • delTags

      public ETOperation delTags(String... pTags)
      Delete all tags with the given tag-names. This method translates to the -TAG= commandline options. Using the setTags()-methods with omitted values has the same effect. See the exiftool documentation for details.
      Parameters:
      pTags - the tags
      Returns:
      this ETOperation