Package com.itextpdf.kernel.xmp.options
Class ParseOptions
java.lang.Object
com.itextpdf.kernel.xmp.options.Options
com.itextpdf.kernel.xmp.options.ParseOptions
- Since:
- 24.01.2006
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
If the input is not unicode, try to parse it as ISO-8859-1.static final int
Convert ASCII control characters 0x01 - 0x1F (except tab, cr, and lf) to spaces.static final int
Do not carry run the XMPNormalizer on a packet, leave it as it is.static final int
Require a surrounding "x:xmpmeta" element in the xml-document.static final int
Do not reconcile alias differences, throw an exception instead. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected String
defineOptionName
(int option) To be implemeted by inheritants.boolean
boolean
boolean
boolean
boolean
protected int
To be implemeted by inheritants.setAcceptLatin1
(boolean value) setFixControlChars
(boolean value) setOmitNormalization
(boolean value) setRequireXMPMeta
(boolean value) setStrictAliasing
(boolean value) Methods inherited from class com.itextpdf.kernel.xmp.options.Options
assertConsistency, clear, containsAllOptions, containsOneOf, equals, getOption, getOptions, getOptionsString, hashCode, isExactly, setOption, setOptions, toString
-
Field Details
-
REQUIRE_XMP_META
public static final int REQUIRE_XMP_METARequire a surrounding "x:xmpmeta" element in the xml-document.- See Also:
-
STRICT_ALIASING
public static final int STRICT_ALIASINGDo not reconcile alias differences, throw an exception instead.- See Also:
-
FIX_CONTROL_CHARS
public static final int FIX_CONTROL_CHARSConvert ASCII control characters 0x01 - 0x1F (except tab, cr, and lf) to spaces.- See Also:
-
ACCEPT_LATIN_1
public static final int ACCEPT_LATIN_1If the input is not unicode, try to parse it as ISO-8859-1.- See Also:
-
OMIT_NORMALIZATION
public static final int OMIT_NORMALIZATIONDo not carry run the XMPNormalizer on a packet, leave it as it is.- See Also:
-
-
Constructor Details
-
ParseOptions
public ParseOptions()Sets the options to the default values.
-
-
Method Details
-
getRequireXMPMeta
public boolean getRequireXMPMeta()- Returns:
- Returns the requireXMPMeta.
-
setRequireXMPMeta
- Parameters:
-
value
- the value to set - Returns:
- Returns the instance to call more set-methods.
-
getStrictAliasing
public boolean getStrictAliasing()- Returns:
- Returns the strictAliasing.
-
setStrictAliasing
- Parameters:
-
value
- the value to set - Returns:
- Returns the instance to call more set-methods.
-
getFixControlChars
public boolean getFixControlChars()- Returns:
- Returns the strictAliasing.
-
setFixControlChars
- Parameters:
-
value
- the value to set - Returns:
- Returns the instance to call more set-methods.
-
getAcceptLatin1
public boolean getAcceptLatin1()- Returns:
- Returns the strictAliasing.
-
setOmitNormalization
- Parameters:
-
value
- the value to set - Returns:
- Returns the instance to call more set-methods.
-
getOmitNormalization
public boolean getOmitNormalization()- Returns:
- Returns the option "omit normalization".
-
setAcceptLatin1
- Parameters:
-
value
- the value to set - Returns:
- Returns the instance to call more set-methods.
-
defineOptionName
Description copied from class:Options
To be implemeted by inheritants.- Specified by:
-
defineOptionName
in classOptions
- Parameters:
-
option
- a single, valid option bit. - Returns:
- Returns a human readable name for an option bit.
- See Also:
-
getValidOptions
protected int getValidOptions()Description copied from class:Options
To be implemeted by inheritants.- Specified by:
-
getValidOptions
in classOptions
- Returns:
- Returns a bit mask where all valid option bits are set.
- See Also:
-