public final class ParseOptions extends Options
XMPMetaFactory.parse(InputStream, ParseOptions)
.Modifier and Type | Field and Description |
---|---|
static int |
ACCEPT_LATIN_1
If the input is not unicode, try to parse it as ISO-8859-1.
|
static int |
DISALLOW_DOCTYPE
Disallow DOCTYPE declarations to prevent entity expansion attacks.
|
static int |
FIX_CONTROL_CHARS
Convert ASCII control characters 0x01 - 0x1F (except tab, cr, and lf) to spaces.
|
static int |
OMIT_NORMALIZATION
Do not carry run the XMPNormalizer on a packet, leave it as it is.
|
static int |
REQUIRE_XMP_META
Require a surrounding "x:xmpmeta" element in the xml-document.
|
static int |
STRICT_ALIASING
Do not reconcile alias differences, throw an exception instead.
|
Constructor and Description |
---|
ParseOptions()
Sets the options to the default values.
|
Modifier and Type | Method and Description |
---|---|
boolean |
areXMPNodesLimited() |
boolean |
getAcceptLatin1() |
boolean |
getDisallowDoctype() |
boolean |
getFixControlChars() |
boolean |
getOmitNormalization() |
boolean |
getRequireXMPMeta() |
boolean |
getStrictAliasing() |
java.util.Map<java.lang.String,java.lang.Integer> |
getXMPNodesToLimit() |
ParseOptions |
setAcceptLatin1(boolean value) |
ParseOptions |
setDisallowDoctype(boolean value) |
ParseOptions |
setFixControlChars(boolean value) |
ParseOptions |
setOmitNormalization(boolean value) |
ParseOptions |
setRequireXMPMeta(boolean value) |
ParseOptions |
setStrictAliasing(boolean value) |
ParseOptions |
setXMPNodesToLimit(java.util.Map<java.lang.String,java.lang.Integer> nodeMap) |
clear, containsAllOptions, containsOneOf, equals, getOptions, getOptionsString, hashCode, isExactly, setOption, setOptions, toString
public static final int REQUIRE_XMP_META
public static final int STRICT_ALIASING
public static final int FIX_CONTROL_CHARS
public static final int ACCEPT_LATIN_1
public static final int OMIT_NORMALIZATION
public static final int DISALLOW_DOCTYPE
public boolean getRequireXMPMeta()
public ParseOptions setRequireXMPMeta(boolean value)
value
- the value to setpublic boolean getStrictAliasing()
public ParseOptions setStrictAliasing(boolean value)
value
- the value to setpublic boolean getFixControlChars()
public ParseOptions setFixControlChars(boolean value)
value
- the value to setpublic boolean getAcceptLatin1()
public ParseOptions setOmitNormalization(boolean value)
value
- the value to setpublic boolean getOmitNormalization()
public ParseOptions setDisallowDoctype(boolean value)
value
- the value to setpublic boolean getDisallowDoctype()
public ParseOptions setAcceptLatin1(boolean value)
value
- the value to setpublic boolean areXMPNodesLimited()
public ParseOptions setXMPNodesToLimit(java.util.Map<java.lang.String,java.lang.Integer> nodeMap)
nodeMap
- the Map with name of nodes and number-of-items to limit them topublic java.util.Map<java.lang.String,java.lang.Integer> getXMPNodesToLimit()
Copyright © 2010 - 2020 Adobe. All Rights Reserved