public final class ParseOptions extends Options
XMPMetaFactory.parse(InputStream, ParseOptions)
.Modifier and Type | Field | Description |
---|---|---|
static int |
ACCEPT_LATIN_1 |
If the input is not unicode, try to parse it as ISO-8859-1.
|
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 | Description |
---|---|
ParseOptions() |
Sets the options to the default values.
|
Modifier and Type | Method | Description |
---|---|---|
protected String |
defineOptionName(int option) |
To be implemeted by inheritants.
|
boolean |
getAcceptLatin1() |
|
boolean |
getFixControlChars() |
|
boolean |
getOmitNormalization() |
|
boolean |
getRequireXMPMeta() |
|
boolean |
getStrictAliasing() |
|
protected int |
getValidOptions() |
To be implemeted by inheritants.
|
ParseOptions |
setAcceptLatin1(boolean value) |
|
ParseOptions |
setFixControlChars(boolean value) |
|
ParseOptions |
setOmitNormalization(boolean value) |
|
ParseOptions |
setRequireXMPMeta(boolean value) |
|
ParseOptions |
setStrictAliasing(boolean value) |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
assertConsistency, clear, containsAllOptions, containsOneOf, equals, getOption, 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 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 setAcceptLatin1(boolean value)
value
- the value to setprotected 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 © 2018. All rights reserved.