| Modifier and Type | Class and Description |
|---|---|
| private static class | JdkXmlUtils.
The system-default factory |
| Modifier and Type | Field and Description |
|---|---|
| public static final String | |
| public static final String | |
| public static final String | |
| public static final String | |
| private static final String | |
| public static final boolean | |
| public static final String | |
| public static final String | |
| public static final String | NAMESPACES_FEATURE
Xerces features |
| public static final String | |
| public static final String | |
| public static final String | |
| private static final String | |
| private static final String | |
| private static final String | SECURITY_MANAGER
Property identifier: security manager. |
| public static final String | |
| public static final String | USE_CATALOG
Catalog features |
| public static final boolean | USE_CATALOG_DEFAULT
Default value of USE_CATALOG. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static void | catalogFeaturesConfig2Config(XMLComponentManager
a Xerces configuration object config1, ParserConfigurationSettings a Xerces configuration object config2)Passing on the CatalogFeatures settings from one Xerces configuration object to another. |
| public static void | catalogFeaturesConfig2Reader(XMLComponentManager
a Xerces configuration object config, XMLReader an XMLReader reader)Passing on the CatalogFeatures settings from a Xerces configuration object to an XMLReader. |
| public static String | Returns: the value of a Catalog feature, null if the name does not match any feature supported by the Catalog.a CatalogFeatures instance features, String the name of a Catalog feature name)Returns the value of a Catalog feature by the property name. |
| public static CatalogFeatures | Returns: an instance of a CatalogFeaturesCreates an instance of a CatalogFeatures with default settings. |
| public static CatalogFeatures | Returns: ajavax. objectthe defer property defined in CatalogFeatures defer, String the file path to a catalog file, String the prefer property defined in CatalogFeatures prefer, String the resolve property defined in CatalogFeatures resolve)Creates an instance of a CatalogFeatures. |
| public static Document | |
| public static DocumentBuilderFactory | Returns: a DocumentBuilderFactory instance.a flag indicating whether the system-default
implementation may be overridden. If the system property of the
DOM factory ID is set, override is always allowed. overrideDefaultParser)Returns a DocumentBuilderFactory instance. |
| public static DocumentBuilderFactory | Returns: a DocumentBuilderFactory instancea flag indicating whether the system-default
implementation may be overridden. If the system property of the
DOM factory ID is set, override is always allowed. overrideDefaultParser, XMLSecurityManager XMLSecurityManager xsm, XMLSecurityPropertyManager XMLSecurityPropertyManager xspm)Returns a DocumentBuilderFactory instance. |
| public static String | Returns: a DTD external declarationthe public identifier publicId, String the system identifier systemId)Returns the external declaration for a DTD construct. |
| public static String | Returns: the value of the property if it's managed by either XMLSecurityManager or XMLSecurityPropertyManager, null otherwisethe XMLSecurityManager xsm, XMLSecurityPropertyManager the XMLSecurityPropertyManager xspm, String the property property)Returns the value of the property if it's managed by either XMLSecurityManager or XMLSecurityPropertyManager. |
| public static SAXParserFactory | Returns: a SAXParserFactory instance.a flag indicating whether the system-default
implementation may be overridden. If the system property of the
DOM factory ID is set, override is always allowed. overrideDefaultParser)Returns a SAXParserFactory instance. |
| public static SAXTransformerFactory | Returns: an instance of SAXTransformerFactorythe XMLSecurityManager sm, boolean the setting of the OVERRIDE_PARSER property overrideDefaultParser)Returns an instance of SAXTransformerFactory with the current XMLSecurityManager and the setting of the OVERRIDE_PARSER property. |
| public static int | |
| public static XMLReader | Returns: an XMLReader instancethe XMLSecurityManager sm, boolean a flag indicating whether a 3rd party's
parser implementation may be used to override the system-default one overrideDefaultParser, boolean a flag indicating whether secure processing is
requested secureProcessing, boolean a flag indicating whether Catalog is enabled useCatalog, CatalogFeatures the CatalogFeatures catalogFeatures)Returns an XMLReader instance. |
| private static XMLReader | |
| private static XMLReader | |
| public static void | initCatalogFeatures(Map<String, Object>
the Map object that holds the properties properties)Initialize catalog features, including setting the default values and reading from the JAXP configuration file and System Properties. |
| public static boolean | Returns: true if the RESOLVE feature isthe specified CatalogFeatures cf)Checks whether the RESOLVE feature in the CatalogFeatures is continue. |
| private static String | Returns: the quoted stringthe input string, can not be null s)Returns the input string quoted with double quotes or single ones if there is a double quote in the string. |
| public static boolean | Returns: true if the property is managed by either XMLSecurityManager or XMLSecurityPropertyManager, false otherwisethe XMLSecurityManager xsm, XMLSecurityPropertyManager the XMLSecurityPropertyManager xspm, String the property property, Object the value value)Sets the property if it's managed by either XMLSecurityManager or XMLSecurityPropertyManager. |
| public static void | setReaderProperty(XMLReader
the XMLReader reader, XMLSecurityManager the XMLSecurityManager sm, boolean the USE_CATALOG property useCatalog, CatalogFeatures the Catalog features catalogFeatures)Sets properties on the reader, including XMLSecurityManager and Catalog features. |
| public static void | setXMLReaderPropertyIfSupport(XMLReader
an XMLReader instance reader, String the name of the property property, Object the value of the property value, boolean a flag indicating whether a warning should be issued warn)Sets the XMLReader instance with the specified property if the property is supported, ignores error if not, issues a warning if so requested. |
| CATALOG_DEFER | back to summary |
|---|---|
| public static final String CATALOG_DEFER | |
| CATALOG_FILES | back to summary |
|---|---|
| public static final String CATALOG_FILES | |
| CATALOG_PREFER | back to summary |
|---|---|
| public static final String CATALOG_PREFER | |
| CATALOG_RESOLVE | back to summary |
|---|---|
| public static final String CATALOG_RESOLVE | |
| DOM_FACTORY_ID | back to summary |
|---|---|
| private static final String DOM_FACTORY_ID | |
| IS_WINDOWS | back to summary |
|---|---|
| public static final boolean IS_WINDOWS | |
| JAVA_HOME | back to summary |
|---|---|
| public static final String JAVA_HOME | |
| NAMESPACE_PREFIXES_FEATURE | back to summary |
|---|---|
| public static final String NAMESPACE_PREFIXES_FEATURE | |
| NAMESPACES_FEATURE | back to summary |
|---|---|
| public static final String NAMESPACES_FEATURE Xerces features | |
| RESOLVE_CONTINUE | back to summary |
|---|---|
| public static final String RESOLVE_CONTINUE | |
| RESOLVE_IGNORE | back to summary |
|---|---|
| public static final String RESOLVE_IGNORE | |
| RESOLVE_STRICT | back to summary |
|---|---|
| public static final String RESOLVE_STRICT | |
| SAX_DRIVER | back to summary |
|---|---|
| private static final String SAX_DRIVER | |
| SAX_FACTORY_ID | back to summary |
|---|---|
| private static final String SAX_FACTORY_ID | |
| SECURITY_MANAGER | back to summary |
|---|---|
| private static final String SECURITY_MANAGER Property identifier: security manager. | |
| SP_USE_CATALOG | back to summary |
|---|---|
| public static final String SP_USE_CATALOG | |
| USE_CATALOG | back to summary |
|---|---|
| public static final String USE_CATALOG Catalog features | |
| USE_CATALOG_DEFAULT | back to summary |
|---|---|
| public static final boolean USE_CATALOG_DEFAULT Default value of USE_CATALOG. This will read the System property | |
| JdkXmlUtils | back to summary |
|---|---|
| public JdkXmlUtils() | |
| catalogFeaturesConfig2Config | back to summary |
|---|---|
| public static void catalogFeaturesConfig2Config(XMLComponentManager config1, ParserConfigurationSettings config2) Passing on the CatalogFeatures settings from one Xerces configuration object to another.
| |
| catalogFeaturesConfig2Reader | back to summary |
|---|---|
| public static void catalogFeaturesConfig2Reader(XMLComponentManager config, XMLReader reader) Passing on the CatalogFeatures settings from a Xerces configuration object to an XMLReader.
| |
| getCatalogFeature | back to summary |
|---|---|
| public static String getCatalogFeature(CatalogFeatures features, String name) Returns the value of a Catalog feature by the property name.
| |
| getCatalogFeatures | back to summary |
|---|---|
| public static CatalogFeatures getCatalogFeatures() Creates an instance of a CatalogFeatures with default settings. Note the CatalogFeatures is initialized with settings in the following order: Default values -> values in the config -> values set with System Properties
| |
| getCatalogFeatures | back to summary |
|---|---|
| public static CatalogFeatures getCatalogFeatures(String defer, String file, String prefer, String resolve) Creates an instance of a CatalogFeatures.
| |
| getDOMDocument | back to summary |
|---|---|
| public static Document getDOMDocument() Creates a system-default DOM Document.
| |
| getDOMFactory | back to summary |
|---|---|
| public static DocumentBuilderFactory getDOMFactory(boolean overrideDefaultParser) Returns a DocumentBuilderFactory instance.
| |
| getDOMFactory | back to summary |
|---|---|
| public static DocumentBuilderFactory getDOMFactory(boolean overrideDefaultParser, XMLSecurityManager xsm, XMLSecurityPropertyManager xspm) Returns a DocumentBuilderFactory instance.
| |
| getDTDExternalDecl | back to summary |
|---|---|
| public static String getDTDExternalDecl(String publicId, String systemId) Returns the external declaration for a DTD construct. | |
| getProperty | back to summary |
|---|---|
| public static String getProperty(XMLSecurityManager xsm, XMLSecurityPropertyManager xspm, String property) Returns the value of the property if it's managed by either XMLSecurityManager or XMLSecurityPropertyManager.
| |
| getSAXFactory | back to summary |
|---|---|
| public static SAXParserFactory getSAXFactory(boolean overrideDefaultParser) Returns a SAXParserFactory instance.
| |
| getSAXTransformFactory | back to summary |
|---|---|
| public static SAXTransformerFactory getSAXTransformFactory(XMLSecurityManager sm, boolean overrideDefaultParser) Returns an instance of SAXTransformerFactory with the current XMLSecurityManager and the setting of the OVERRIDE_PARSER property.
| |
| getValue | back to summary |
|---|---|
| public static int getValue(Object value, int defValue) Returns the value.
| |
| getXMLReader | back to summary |
|---|---|
| public static XMLReader getXMLReader(XMLSecurityManager sm, boolean overrideDefaultParser, boolean secureProcessing, boolean useCatalog, CatalogFeatures catalogFeatures) Returns an XMLReader instance. If overrideDefaultParser is requested, use SAXParserFactory or XMLReaderFactory, otherwise use the system-default SAXParserFactory to locate an XMLReader. Note parameter useXMLReaderFactory was removed. The method instead checks the SAX_DRIVER property for whether the XMLReader should be created using XMLReaderFactory for compatibility. (see JDK-6490921).
| |
| getXMLReaderWSAXFactory | back to summary |
|---|---|
| private static XMLReader getXMLReaderWSAXFactory(boolean overrideDefaultParser) | |
| getXMLReaderWXMLReaderFactory | back to summary |
|---|---|
private static XMLReader getXMLReaderWXMLReaderFactory()
| |
| initCatalogFeatures | back to summary |
|---|---|
| public static void initCatalogFeatures(Map<String, Object> properties) Initialize catalog features, including setting the default values and reading from the JAXP configuration file and System Properties. | |
| isResolveContinue | back to summary |
|---|---|
| public static boolean isResolveContinue(CatalogFeatures cf) Checks whether the RESOLVE feature in the CatalogFeatures is continue.
| |
| quoteString | back to summary |
|---|---|
| private static String quoteString(String s) Returns the input string quoted with double quotes or single ones if there is a double quote in the string. | |
| setProperty | back to summary |
|---|---|
| public static boolean setProperty(XMLSecurityManager xsm, XMLSecurityPropertyManager xspm, String property, Object value) Sets the property if it's managed by either XMLSecurityManager or XMLSecurityPropertyManager.
| |
| setReaderProperty | back to summary |
|---|---|
| public static void setReaderProperty(XMLReader reader, XMLSecurityManager sm, boolean useCatalog, CatalogFeatures catalogFeatures) Sets properties on the reader, including XMLSecurityManager and Catalog features.
| |
| setXMLReaderPropertyIfSupport | back to summary |
|---|---|
| public static void setXMLReaderPropertyIfSupport(XMLReader reader, String property, Object value, boolean warn) Sets the XMLReader instance with the specified property if the property is supported, ignores error if not, issues a warning if so requested. | |
| Modifier and Type | Field and Description |
|---|---|
| private static final SAXParserFactory |
| Access | Constructor and Description |
|---|---|
| private |
| instance | back to summary |
|---|---|
| private static final SAXParserFactory instance | |
| DefaultSAXFactory | back to summary |
|---|---|
| private DefaultSAXFactory() | |