public class EncodingOptions extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CANONICAL_EXI
To indicate that the EXI stream should respect the Canonical EXI rules
(see http://www.w3.org/TR/exi-c14n)
|
static String |
DEFLATE_COMPRESSION_VALUE
To set the deflate stream with a specified compression level.
|
static String |
INCLUDE_COOKIE
Include EXI Cookie
|
static String |
INCLUDE_INSIGNIFICANT_XSI_NIL
Include Insignificant xsi:nil values e.g., xsi:nil="false"
|
static String |
INCLUDE_OPTIONS
Include EXI Options (or opposite of omitOptionsDocument in Canonical EXI)
|
static String |
INCLUDE_PROFILE_VALUES
To indicate that the EXI profile is in use and advertising each parameter
value (exi:p element)
|
static String |
INCLUDE_SCHEMA_ID
Include schemaID as part of EXI Options
|
static String |
INCLUDE_XSI_SCHEMALOCATION
Include attribute "schemaLocation" and "noNamespaceSchemaLocation"
|
protected Map<String,Object> |
options |
static String |
RETAIN_ENTITY_REFERENCE
Encode entity references as ER event instead of trying to resolve them
|
static String |
UTC_TIME
The utcTime option is used to specify whether Date-Time values must be
represented using Coordinated Universal Time (UTC, sometimes called
"Greenwich Mean Time").
|
| Modifier | Constructor and Description |
|---|---|
protected |
EncodingOptions() |
| Modifier and Type | Method and Description |
|---|---|
static EncodingOptions |
createDefault()
Creates encoding options using default options (NO Cookie, option or
schemaID).
|
boolean |
equals(Object o) |
Object |
getOptionValue(String key)
Returns the specified option value.
|
int |
hashCode() |
boolean |
isOptionEnabled(String key)
Informs whether the specified option is enabled.
|
void |
setOption(String key)
Enables given option.
|
void |
setOption(String key,
Object value)
Enables given option with value.
|
String |
toString() |
boolean |
unsetOption(String key)
Disables given option.
|
public static final String INCLUDE_COOKIE
public static final String INCLUDE_OPTIONS
public static final String INCLUDE_SCHEMA_ID
public static final String RETAIN_ENTITY_REFERENCE
public static final String INCLUDE_XSI_SCHEMALOCATION
public static final String INCLUDE_INSIGNIFICANT_XSI_NIL
public static final String INCLUDE_PROFILE_VALUES
public static final String UTC_TIME
public static final String CANONICAL_EXI
INCLUDE_OPTIONS,
UTC_TIME,
Constant Field Valuespublic static final String DEFLATE_COMPRESSION_VALUE
Deflater.setLevel(int),
Constant Field Valuespublic static EncodingOptions createDefault()
public void setOption(String key) throws UnsupportedOption
Note: Some options (e.g. INCLUDE_SCHEMA_ID) will only take effect if the EXI options document is set to encode options in general (see INCLUDE_OPTIONS).
key - referring to a specific optionUnsupportedOption - if option is not supportedpublic void setOption(String key, Object value) throws UnsupportedOption
Note: Some options (e.g. INCLUDE_SCHEMA_ID) will only take effect if the EXI options document is set to encode options in general (see INCLUDE_OPTIONS).
key - referring to a specific optionvalue - specific option valueUnsupportedOption - if option is not supportedpublic boolean unsetOption(String key)
key - referring to a specific optionpublic boolean isOptionEnabled(String key)
key - featurepublic Object getOptionValue(String key)
key - featureCopyright © 2018 Siemens AG. All rights reserved.