public final class SerializeOptions extends Options
Modifier and Type | Field and Description |
---|---|
static int |
ENCODE_UTF16BE
UTF16BE encoding
|
static int |
ENCODE_UTF16LE
UTF16LE encoding
|
static int |
ENCODE_UTF8
UTF8 encoding; this is the default
|
static int |
EXACT_PACKET_LENGTH
The padding parameter provides the overall packet length.
|
static int |
INCLUDE_THUMBNAIL_PAD
Include a padding allowance for a thumbnail image.
|
static int |
OMIT_PACKET_WRAPPER
Omit the XML packet wrapper.
|
static int |
OMIT_XMPMETA_ELEMENT
Omit the <x:xmpmeta>-tag
|
static int |
READONLY_PACKET
Mark packet as read-only.
|
static int |
SORT
Sort the struct properties and qualifier before serializing
|
static int |
USE_CANONICAL_FORMAT
Use the canonical form of RDF if set.
|
static int |
USE_COMPACT_FORMAT
Use a compact form of RDF.
|
static int |
USE_PLAIN_XMP
Serialize as "Plain XMP", not RDF.
|
Constructor and Description |
---|
SerializeOptions()
Default constructor.
|
SerializeOptions(int options)
Constructor using inital options
|
clear, containsAllOptions, containsOneOf, equals, getOptions, getOptionsString, hashCode, isExactly, setOption, setOptions, toString
public static final int OMIT_PACKET_WRAPPER
public static final int READONLY_PACKET
public static final int USE_COMPACT_FORMAT
public static final int USE_CANONICAL_FORMAT
public static final int USE_PLAIN_XMP
public static final int INCLUDE_THUMBNAIL_PAD
public static final int EXACT_PACKET_LENGTH
public static final int OMIT_XMPMETA_ELEMENT
public static final int SORT
public static final int ENCODE_UTF8
public static final int ENCODE_UTF16BE
public static final int ENCODE_UTF16LE
public SerializeOptions()
public SerializeOptions(int options) throws XMPException
options
- the inital optionsXMPException
- Thrown if options are not consistant.public boolean getOmitPacketWrapper()
public SerializeOptions setOmitPacketWrapper(boolean value)
value
- the value to setpublic boolean getOmitXmpMetaElement()
public SerializeOptions setOmitXmpMetaElement(boolean value)
value
- the value to setpublic boolean getReadOnlyPacket()
public SerializeOptions setReadOnlyPacket(boolean value)
value
- the value to setpublic boolean getUseCompactFormat()
public SerializeOptions setUseCompactFormat(boolean value)
value
- the value to setpublic boolean getUseCanonicalFormat()
public SerializeOptions setUseCanonicalFormat(boolean value)
value
- the value to setpublic boolean getUsePlainXMP()
public SerializeOptions setUsePlainXMP(boolean value)
value
- the value to setpublic boolean getIncludeThumbnailPad()
public SerializeOptions setIncludeThumbnailPad(boolean value)
value
- the value to setpublic boolean getExactPacketLength()
public SerializeOptions setExactPacketLength(boolean value)
value
- the value to setpublic boolean getSort()
public SerializeOptions setSort(boolean value)
value
- the value to setpublic boolean getEncodeUTF16BE()
public SerializeOptions setEncodeUTF16BE(boolean value)
value
- the value to setpublic boolean getEncodeUTF16LE()
public SerializeOptions setEncodeUTF16LE(boolean value)
value
- the value to setpublic int getBaseIndent()
public SerializeOptions setBaseIndent(int baseIndent)
baseIndent
- The baseIndent to set.public java.lang.String getIndent()
public SerializeOptions setIndent(java.lang.String indent)
indent
- The indent to set.public java.lang.String getNewline()
public SerializeOptions setNewline(java.lang.String newline)
newline
- The newline to set.public int getPadding()
public SerializeOptions setPadding(int padding)
padding
- The padding to set.public boolean getOmitVersionAttribute()
public java.lang.String getEncoding()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- Cannot happen in this place.Copyright © 2010 - 2020 Adobe. All Rights Reserved