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 |
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.
|
Constructor and Description |
---|
SerializeOptions()
Default constructor.
|
SerializeOptions(int options)
Constructor using inital options
|
assertConsistency, clear, containsAllOptions, containsOneOf, equals, getOption, 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 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 options
XMPException
- Thrown if options are not consistant.
public boolean getOmitPacketWrapper()
public SerializeOptions setOmitPacketWrapper(boolean value)
value
- the value to set
public boolean getOmitXmpMetaElement()
public SerializeOptions setOmitXmpMetaElement(boolean value)
value
- the value to set
public boolean getReadOnlyPacket()
public SerializeOptions setReadOnlyPacket(boolean value)
value
- the value to set
public boolean getUseCompactFormat()
public SerializeOptions setUseCompactFormat(boolean value)
value
- the value to set
public boolean getUseCanonicalFormat()
public SerializeOptions setUseCanonicalFormat(boolean value)
value
- the value to set
public boolean getIncludeThumbnailPad()
public SerializeOptions setIncludeThumbnailPad(boolean value)
value
- the value to set
public boolean getExactPacketLength()
public SerializeOptions setExactPacketLength(boolean value)
value
- the value to set
public boolean getSort()
public SerializeOptions setSort(boolean value)
value
- the value to set
public boolean getEncodeUTF16BE()
public SerializeOptions setEncodeUTF16BE(boolean value)
value
- the value to set
public boolean getEncodeUTF16LE()
public SerializeOptions setEncodeUTF16LE(boolean value)
value
- the value to set
public int getBaseIndent()
public SerializeOptions setBaseIndent(int baseIndent)
baseIndent
- The baseIndent to set.
public String getIndent()
public SerializeOptions setIndent(String indent)
indent
- The indent to set.
public String getNewline()
public SerializeOptions setNewline(String newline)
newline
- The newline to set.
public int getPadding()
public SerializeOptions setPadding(int padding)
padding
- The padding to set.
public boolean getOmitVersionAttribute()
public String getEncoding()
public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
- Cannot happen in this place.
protected String defineOptionName(int option)
Options
defineOptionName
in class Options
option
- a single, valid option bit.
Options.defineOptionName(int)
protected int getValidOptions()
Options
getValidOptions
in class Options
Options.getValidOptions()
Copyright © 2016. All rights reserved.