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 |
|---|---|
| private static Properties | m_html_properties
The default properties when method="html". |
| private static Properties | m_text_properties
The default properties when method="text". |
| private static Properties | m_unknown_properties
The properties when method="" for the "unknown" wrapper |
| private static Properties | m_xml_properties
The default properties for all other than html and text. |
| private static final String[] | |
| private static final String[] | |
| private static final String[] | |
| private static final String[] | |
| private static final String[] | |
| private static final String[] | |
| private static final String[] | |
| private static final String[] | |
| public static final String | S_BUILTIN_EXTENSIONS_UNIVERSAL
This is not a public API. |
| private static final String | S_BUILTIN_EXTENSIONS_URL
S_BUILTIN_EXTENSIONS_URL is a mnemonic for the XML Namespace (http://xml.apache.org/xalan) predefined to signify Xalan's built-in XSLT Extensions. |
| public static final String | S_BUILTIN_OLD_EXTENSIONS_UNIVERSAL
The old built-in extension namespace, this is not a public API. |
| public static final 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. |
| private static final String | S_BUILTIN_OLD_EXTENSIONS_URL
The old built-in extension url. |
| public static final 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. |
| public static final 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. |
| public static final 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". |
| public static final String | S_KEY_LINE_SEPARATOR
The non-standard property key to use to set the number of whitepaces to indent by, per indentation level, if indent="yes". |
| public static final 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. |
| public static final 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. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static final Properties | Returns: Properties object that holds the defaults for the given method.non-null reference to method name. method)Returns a Properties based on the specified method. |
| private static Properties | initProperties(String[]
an array of keys keys, String[] values corresponding to the keys values, Properties Default properties, which may be null. defaults)Initiates the properties |
| m_html_properties | back to summary |
|---|---|
| private static Properties m_html_properties The default properties when method="html". | |
| m_text_properties | back to summary |
|---|---|
| private static Properties m_text_properties The default properties when method="text". | |
| m_unknown_properties | back to summary |
|---|---|
| private static Properties m_unknown_properties The properties when method="" for the "unknown" wrapper | |
| m_xml_properties | back to summary |
|---|---|
| private static Properties m_xml_properties The default properties for all other than html and text. | |
| PROP_HTML | back to summary |
|---|---|
| private static final String[] PROP_HTML | |
| PROP_HTML_VALUE | back to summary |
|---|---|
| private static final String[] PROP_HTML_VALUE | |
| PROP_TEXT | back to summary |
|---|---|
| private static final String[] PROP_TEXT | |
| PROP_TEXT_VALUE | back to summary |
|---|---|
| private static final String[] PROP_TEXT_VALUE | |
| PROP_UNKNOWN | back to summary |
|---|---|
| private static final String[] PROP_UNKNOWN | |
| PROP_UNKNOWN_VALUE | back to summary |
|---|---|
| private static final String[] PROP_UNKNOWN_VALUE | |
| PROP_XML | back to summary |
|---|---|
| private static final String[] PROP_XML | |
| PROP_XML_VALUE | back to summary |
|---|---|
| private static final String[] PROP_XML_VALUE | |
| S_BUILTIN_EXTENSIONS_UNIVERSAL | back to summary |
|---|---|
| public static final String S_BUILTIN_EXTENSIONS_UNIVERSAL This is not a public API. This is the built-in extensions namespace, reexpressed in {namespaceURI} syntax suitable for prepending to a localname to produce a "universal name". | |
| S_BUILTIN_EXTENSIONS_URL | back to summary |
|---|---|
| private static final String S_BUILTIN_EXTENSIONS_URL S_BUILTIN_EXTENSIONS_URL is a mnemonic for the XML Namespace (http://xml.apache.org/xalan) predefined to signify Xalan's built-in XSLT Extensions. When used in stylesheets, this is often bound to the "xalan:" prefix. | |
| S_BUILTIN_OLD_EXTENSIONS_UNIVERSAL | back to summary |
|---|---|
| public static final String S_BUILTIN_OLD_EXTENSIONS_UNIVERSAL The old built-in extension namespace, this is not a public API. | |
| S_BUILTIN_OLD_EXTENSIONS_UNIVERSAL_LEN | back to summary |
|---|---|
| public static final 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. | |
| S_BUILTIN_OLD_EXTENSIONS_URL | back to summary |
|---|---|
| private static final String S_BUILTIN_OLD_EXTENSIONS_URL The old built-in extension url. It is still supported for backward compatibility. | |
| S_KEY_CONTENT_HANDLER | back to summary |
|---|---|
| public static final 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. Fully qualified name of class with a default constructor that implements the ContentHandler interface, where the result tree events will be sent to. | |
| S_KEY_ENTITIES | back to summary |
|---|---|
| public static final 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. | |
| S_KEY_INDENT_AMOUNT | back to summary |
|---|---|
| public static final 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". | |
| S_KEY_LINE_SEPARATOR | back to summary |
|---|---|
| public static final String S_KEY_LINE_SEPARATOR The non-standard property key to use to set the number of whitepaces to indent by, per indentation level, if indent="yes". | |
| S_OMIT_META_TAG | back to summary |
|---|---|
| public static final 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. | |
| S_USE_URL_ESCAPING | back to summary |
|---|---|
| public static final 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. | |
| OutputPropertiesFactory | back to summary |
|---|---|
| public OutputPropertiesFactory() | |
| getDefaultMethodProperties | back to summary |
|---|---|
| public static final Properties getDefaultMethodProperties(String method) Returns a Properties based on the specified method. The default is xml.
| |
| initProperties | back to summary |
|---|---|
| private static Properties initProperties(String[] keys, String[] values, Properties defaults) Initiates the properties
| |