Enum Class ExifTag

java.lang.Object
java.lang.Enum<ExifTag>
cloud.opencode.base.image.exif.ExifTag
All Implemented Interfaces:
Serializable, Comparable<ExifTag>, Constable

public enum ExifTag extends Enum<ExifTag>
EXIF Tag Category Enum EXIF 标签类别枚举

Defines categories of EXIF metadata tags that can be read or stripped from JPEG images.

定义可从 JPEG 图片中读取或清除的 EXIF 元数据标签类别。

Features | 主要功能:

  • Categorize EXIF tags for selective read/strip - 对 EXIF 标签进行分类以支持选择性读取/清除
  • ALL represents the entire EXIF segment - ALL 代表整个 EXIF 段

Usage Examples | 使用示例:

// Strip all EXIF data
byte[] clean = ExifOp.strip(jpegBytes, ExifTag.ALL);

// Strip only GPS data
byte[] noGps = ExifOp.strip(jpegBytes, ExifTag.GPS);

Security | 安全性:

  • Thread-safe: Yes (enum is immutable) - 线程安全: 是(枚举不可变)
Since:
JDK 25, opencode-base-image V2.0.0
Author:
Leon Soo www.LeonSoo.com
See Also:
  • Enum Constant Details

    • ALL

      public static final ExifTag ALL
      All EXIF tags - strip the entire APP1 segment 所有 EXIF 标签 - 清除整个 APP1 段
    • ORIENTATION

      public static final ExifTag ORIENTATION
      Orientation tag (0x0112) 方向标签 (0x0112)
    • GPS

      public static final ExifTag GPS
      GPS-related tags (latitude, longitude, etc.) GPS 相关标签(纬度、经度等)
    • DATETIME

      public static final ExifTag DATETIME
      DateTime tag (0x0132) 日期时间标签 (0x0132)
    • CAMERA

      public static final ExifTag CAMERA
      Camera make and model tags (0x010F, 0x0110) 相机制造商和型号标签 (0x010F, 0x0110)
    • SOFTWARE

      public static final ExifTag SOFTWARE
      Software tag (0x0131) 软件标签 (0x0131)
  • Method Details

    • values

      public static ExifTag[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ExifTag valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null