Enum SerializeOptions.Option

java.lang.Object
java.lang.Enum<SerializeOptions.Option>
com.adobe.xmp.core.serializer.SerializeOptions.Option
All Implemented Interfaces:
Serializable, Comparable<SerializeOptions.Option>, java.lang.constant.Constable
Enclosing class:
SerializeOptions

public static enum SerializeOptions.Option extends Enum<SerializeOptions.Option>
Enum for all serialization options.
  • Enum Constant Details

    • NO_PACKET_WRAPPER

      public static final SerializeOptions.Option NO_PACKET_WRAPPER
      Omit the XML packet wrapper.
    • NO_XMPMETA_ELEMENT

      public static final SerializeOptions.Option NO_XMPMETA_ELEMENT
      Omit the <x:xmpmeta>-tag
    • NO_VERSION_ATTRIBUTE

      public static final SerializeOptions.Option NO_VERSION_ATTRIBUTE
      Omits the Toolkit version attribute, not published, only used for Unit tests.
    • READONLY_PACKET

      public static final SerializeOptions.Option 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

      public static final SerializeOptions.Option 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

      public static final SerializeOptions.Option 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

      public static final SerializeOptions.Option 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

      public static final SerializeOptions.Option SORT
      Sort the struct properties, unordered arrays and qualifiers before serializing
    • ENCODE_UTF16BE

      public static final SerializeOptions.Option ENCODE_UTF16BE
      Serializes with UTF-16 Big Endian encoding. UTF-8 is the default
    • ENCODE_UTF16LE

      public static final SerializeOptions.Option ENCODE_UTF16LE
      Serializes with UTF-16 Little Endian encoding. UTF-8 is the default
  • Method Details

    • values

      public static SerializeOptions.Option[] 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

      public static SerializeOptions.Option valueOf(String name)
      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 name
      NullPointerException - if the argument is null