Package com.adobe.xmp.core.serializer
Class SerializeOptions
java.lang.Object
com.adobe.xmp.core.serializer.SerializeOptions
- All Implemented Interfaces:
Cloneable
Options for
XMPSerializer.
Default serialization tooks place if no options are set.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum for all serialization options. -
Constructor Summary
ConstructorsConstructorDescriptionSerializeOptions(SerializeOptions.Option... options) Creates an options instance with one or more options. -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(SerializeOptions.Option option) Adds an option flag.clone()intintbooleanhasOption(SerializeOptions.Option option) Check if an options is set.voidremove(SerializeOptions.Option option) Removes an option flag.voidsetBaseIndent(int baseIndent) voidvoidsetNewline(String newline) voidsetOptions(EnumSet<SerializeOptions.Option> options) voidsetPadding(int padding)
-
Constructor Details
-
SerializeOptions
Creates an options instance with one or more options.- Parameters:
options- a list of option parameters
-
-
Method Details
-
hasOption
Check if an options is set.- Parameters:
option- the option flag- Returns:
- Returns true if the option is set, false otherwise.
-
add
Adds an option flag.- Parameters:
option- an option enum
-
remove
Removes an option flag.- Parameters:
option- an option enum
-
getOptions
- Returns:
- the options
-
setOptions
- Parameters:
options- the options to set
-
getPadding
public int getPadding()- Returns:
- the padding
-
setPadding
public void setPadding(int padding) - Parameters:
padding- the padding to set
-
getNewline
- Returns:
- the newline
-
setNewline
- Parameters:
newline- the newline to set
-
getIndent
- Returns:
- the indent
-
setIndent
- Parameters:
indent- the indent to set
-
getBaseIndent
public int getBaseIndent()- Returns:
- the baseIndent
-
setBaseIndent
public void setBaseIndent(int baseIndent) - Parameters:
baseIndent- the baseIndent to set
-
getEncoding
- Returns:
- Returns the encoding as Java encoding String.
-
clone
- Returns:
- Returns clone of this SerializeOptions-object with the same options set.
- Throws:
CloneNotSupportedException- Cannot happen in this place.
-