Enum Class ExifTag
- All Implemented Interfaces:
Serializable, Comparable<ExifTag>, Constable
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:
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAll EXIF tags - strip the entire APP1 segment 所有 EXIF 标签 - 清除整个 APP1 段Camera make and model tags (0x010F, 0x0110) 相机制造商和型号标签 (0x010F, 0x0110)DateTime tag (0x0132) 日期时间标签 (0x0132)GPS-related tags (latitude, longitude, etc.)Orientation tag (0x0112) 方向标签 (0x0112)Software tag (0x0131) 软件标签 (0x0131) -
Method Summary
-
Enum Constant Details
-
ALL
All EXIF tags - strip the entire APP1 segment 所有 EXIF 标签 - 清除整个 APP1 段 -
ORIENTATION
Orientation tag (0x0112) 方向标签 (0x0112) -
GPS
GPS-related tags (latitude, longitude, etc.) GPS 相关标签(纬度、经度等) -
DATETIME
DateTime tag (0x0132) 日期时间标签 (0x0132) -
CAMERA
Camera make and model tags (0x010F, 0x0110) 相机制造商和型号标签 (0x010F, 0x0110) -
SOFTWARE
Software tag (0x0131) 软件标签 (0x0131)
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-