public final class OutputPropertiesFactory extends Object
SerilizerFactory
.
The properties generated by this factory
may be modified to non-default values before the SerializerFactory is used to
create a Serializer.
The given output types supported are "xml", "text", and "html".
These type strings can be obtained from the
Method
class in this package.
Other constants defined in this class are the non-standard property keys that can be used to set non-standard property values on a java.util.Properties object that is used to create or configure a serializer. Here are the non-standard keys:
SerializerFactory
,
Method
,
Serializer
Modifier and Type | Field and Description |
---|---|
static String |
S_BUILTIN_EXTENSIONS_UNIVERSAL
This is not a public API.
|
static String |
S_BUILTIN_OLD_EXTENSIONS_UNIVERSAL
The old built-in extension namespace, this is not a public API.
|
static int |
S_BUILTIN_OLD_EXTENSIONS_UNIVERSAL_LEN
This is not a public API, it is only public because it is used
by outside of this package,
it is the length of the old built-in extension namespace.
|
static String |
S_KEY_CONTENT_HANDLER
This non-standard property key is used to set the name of the fully qualified
Java class that implements the ContentHandler interface.
|
static String |
S_KEY_ENTITIES
This non-standard property key is used to specify the name of the property file
that specifies character to entity reference mappings.
|
static String |
S_KEY_INDENT_AMOUNT
The non-standard property key to use to set the
number of whitepaces to indent by, per indentation level,
if indent="yes".
|
static String |
S_KEY_LINE_SEPARATOR
The non-standard property key to use to set the
characters to write out as at the end of a line,
rather than the default ones from the runtime.
|
static String |
S_OMIT_META_TAG
This non-standard property key is used to set a value of "yes" if the META tag should be omitted where it would
otherwise be supplied.
|
static String |
S_USE_URL_ESCAPING
This non-standard property key is used to set a value of "yes" if the href values for HTML serialization should
use %xx escaping.
|
Constructor and Description |
---|
OutputPropertiesFactory() |
Modifier and Type | Method and Description |
---|---|
static Properties |
getDefaultMethodProperties(String method)
Creates an empty OutputProperties with the property key/value defaults specified by
a property file.
|
public static final String S_BUILTIN_EXTENSIONS_UNIVERSAL
public static final String S_KEY_INDENT_AMOUNT
public static final String S_KEY_LINE_SEPARATOR
public static final String S_KEY_CONTENT_HANDLER
public static final String S_KEY_ENTITIES
public static final String S_USE_URL_ESCAPING
public static final String S_OMIT_META_TAG
public static final String S_BUILTIN_OLD_EXTENSIONS_UNIVERSAL
public static final int S_BUILTIN_OLD_EXTENSIONS_UNIVERSAL_LEN
public static final Properties getDefaultMethodProperties(String method)
Anything other than 'text', 'xml', and 'html', will use the output_xml.properties file.
method
- non-null reference to method name.Copyright © 2017 JBoss by Red Hat. All rights reserved.