public class SerializeOptions
extends java.lang.Object
implements java.lang.Cloneable
XMPSerializer
.
Default serialization tooks place if no options are set.Modifier and Type | Class and Description |
---|---|
static class |
SerializeOptions.Option
Enum for all serialization options.
|
Constructor and Description |
---|
SerializeOptions(SerializeOptions.Option... options)
Creates an options instance with one or more options.
|
Modifier and Type | Method and Description |
---|---|
void |
add(SerializeOptions.Option option)
Adds an option flag.
|
java.lang.Object |
clone() |
int |
getBaseIndent() |
java.lang.String |
getEncoding() |
java.lang.String |
getIndent() |
java.lang.String |
getNewline() |
java.util.EnumSet<SerializeOptions.Option> |
getOptions() |
int |
getPadding() |
boolean |
hasOption(SerializeOptions.Option option)
Check if an options is set.
|
void |
remove(SerializeOptions.Option option)
Removes an option flag.
|
void |
setBaseIndent(int baseIndent) |
void |
setIndent(java.lang.String indent) |
void |
setNewline(java.lang.String newline) |
void |
setOptions(java.util.EnumSet<SerializeOptions.Option> options) |
void |
setPadding(int padding) |
public SerializeOptions(SerializeOptions.Option... options)
options
- a list of option parameterspublic boolean hasOption(SerializeOptions.Option option)
option
- the option flagpublic void add(SerializeOptions.Option option)
option
- an option enumpublic void remove(SerializeOptions.Option option)
option
- an option enumpublic java.util.EnumSet<SerializeOptions.Option> getOptions()
public void setOptions(java.util.EnumSet<SerializeOptions.Option> options)
options
- the options to setpublic int getPadding()
public void setPadding(int padding)
padding
- the padding to setpublic java.lang.String getNewline()
public void setNewline(java.lang.String newline)
newline
- the newline to setpublic java.lang.String getIndent()
public void setIndent(java.lang.String indent)
indent
- the indent to setpublic int getBaseIndent()
public void setBaseIndent(int baseIndent)
baseIndent
- the baseIndent to setpublic java.lang.String getEncoding()
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
- Cannot happen in this place.Copyright © 2010 - 2020 Adobe. All Rights Reserved