Package com.adobe.xmp.core.serializer
Enum SerializeOptions.Option
- All Implemented Interfaces:
Serializable,Comparable<SerializeOptions.Option>,java.lang.constant.Constable
- Enclosing class:
SerializeOptions
Enum for all serialization options.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionSerialize to the canonical form of RDF if set.Serializes with UTF-16 Big Endian encoding.Serializes with UTF-16 Little Endian encoding.If this option is set, the padding parameter is interpreted to be the overall packet length.Include a padding allowance for a thumbnail image.Omit the XML packet wrapper.Omits the Toolkit version attribute, not published, only used for Unit tests.Omit the <x:xmpmeta>-tagMark packet as read-only.Sort the struct properties, unordered arrays and qualifiers before serializing -
Method Summary
Modifier and TypeMethodDescriptionstatic SerializeOptions.OptionReturns the enum constant of this type with the specified name.static SerializeOptions.Option[]values()Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
NO_PACKET_WRAPPER
Omit the XML packet wrapper. -
NO_XMPMETA_ELEMENT
Omit the <x:xmpmeta>-tag -
NO_VERSION_ATTRIBUTE
Omits the Toolkit version attribute, not published, only used for Unit tests. -
READONLY_PACKET
Mark packet as read-only. Default is a writable packet. This option can only be applied if the option NO_PACKET_WRAPPER isn't set. -
CANONICAL_FORMAT
Serialize to the canonical form of RDF if set. The compact form is the default serialization format (if this option is not set). To serialize to the canonical form, set the flag USE_CANONICAL_FORMAT. -
INCLUDE_THUMBNAIL_PAD
Include a padding allowance for a thumbnail image. If no xmp:Thumbnails property is present, the typical space for a JPEG thumbnail is used. -
EXACT_PACKET_LENGTH
If this option is set, the padding parameter is interpreted to be the overall packet length. The actual amount of padding is computed. An exception is thrown if the packet exceeds this length with no padding. -
SORT
Sort the struct properties, unordered arrays and qualifiers before serializing -
ENCODE_UTF16BE
Serializes with UTF-16 Big Endian encoding. UTF-8 is the default -
ENCODE_UTF16LE
Serializes with UTF-16 Little Endian encoding. UTF-8 is the default
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-