Java Code Examples for com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration#setFeature()
The following examples show how to use
com.sun.org.apache.xerces.internal.xni.parser.XMLParserConfiguration#setFeature() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: XIncludeHandler.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
private void copyFeatures1( Enumeration features, String featurePrefix, XMLComponentManager from, XMLParserConfiguration to) { while (features.hasMoreElements()) { String featureId = featurePrefix + (String)features.nextElement(); boolean value = from.getFeature(featureId); try { to.setFeature(featureId, value); } catch (XMLConfigurationException e) { // componentManager doesn't support this feature, // so we won't worry about it } } }
Example 2
Source File: XIncludeHandler.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
private void copyFeatures1( Enumeration features, String featurePrefix, XMLComponentManager from, XMLParserConfiguration to) { while (features.hasMoreElements()) { String featureId = featurePrefix + (String)features.nextElement(); boolean value = from.getFeature(featureId); try { to.setFeature(featureId, value); } catch (XMLConfigurationException e) { // componentManager doesn't support this feature, // so we won't worry about it } } }
Example 3
Source File: XIncludeHandler.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
private void copyFeatures1( Enumeration features, String featurePrefix, XMLComponentManager from, XMLParserConfiguration to) { while (features.hasMoreElements()) { String featureId = featurePrefix + (String)features.nextElement(); boolean value = from.getFeature(featureId); try { to.setFeature(featureId, value); } catch (XMLConfigurationException e) { // componentManager doesn't support this feature, // so we won't worry about it } } }
Example 4
Source File: XIncludeHandler.java From Bytecoder with Apache License 2.0 | 6 votes |
private void copyFeatures1( Enumeration<Object> features, String featurePrefix, XMLComponentManager from, XMLParserConfiguration to) { while (features.hasMoreElements()) { String featureId = featurePrefix + (String)features.nextElement(); boolean value = from.getFeature(featureId); try { to.setFeature(featureId, value); } catch (XMLConfigurationException e) { // componentManager doesn't support this feature, // so we won't worry about it } } }
Example 5
Source File: XIncludeHandler.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
private void copyFeatures1( Enumeration features, String featurePrefix, XMLComponentManager from, XMLParserConfiguration to) { while (features.hasMoreElements()) { String featureId = featurePrefix + (String)features.nextElement(); boolean value = from.getFeature(featureId); try { to.setFeature(featureId, value); } catch (XMLConfigurationException e) { // componentManager doesn't support this feature, // so we won't worry about it } } }
Example 6
Source File: XIncludeHandler.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
private void copyFeatures1( Enumeration features, String featurePrefix, XMLComponentManager from, XMLParserConfiguration to) { while (features.hasMoreElements()) { String featureId = featurePrefix + (String)features.nextElement(); boolean value = from.getFeature(featureId); try { to.setFeature(featureId, value); } catch (XMLConfigurationException e) { // componentManager doesn't support this feature, // so we won't worry about it } } }
Example 7
Source File: XIncludeHandler.java From JDKSourceCode1.8 with MIT License | 6 votes |
private void copyFeatures1( Enumeration features, String featurePrefix, XMLComponentManager from, XMLParserConfiguration to) { while (features.hasMoreElements()) { String featureId = featurePrefix + (String)features.nextElement(); boolean value = from.getFeature(featureId); try { to.setFeature(featureId, value); } catch (XMLConfigurationException e) { // componentManager doesn't support this feature, // so we won't worry about it } } }
Example 8
Source File: XIncludeHandler.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
private void copyFeatures1( Enumeration features, String featurePrefix, XMLComponentManager from, XMLParserConfiguration to) { while (features.hasMoreElements()) { String featureId = featurePrefix + (String)features.nextElement(); boolean value = from.getFeature(featureId); try { to.setFeature(featureId, value); } catch (XMLConfigurationException e) { // componentManager doesn't support this feature, // so we won't worry about it } } }
Example 9
Source File: XIncludeHandler.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
private void copyFeatures1( Enumeration features, String featurePrefix, XMLComponentManager from, XMLParserConfiguration to) { while (features.hasMoreElements()) { String featureId = featurePrefix + (String)features.nextElement(); boolean value = from.getFeature(featureId); try { to.setFeature(featureId, value); } catch (XMLConfigurationException e) { // componentManager doesn't support this feature, // so we won't worry about it } } }
Example 10
Source File: AbstractSAXParser.java From JDKSourceCode1.8 with MIT License | 5 votes |
/** Default constructor. */ protected AbstractSAXParser(XMLParserConfiguration config) { super(config); config.addRecognizedFeatures(RECOGNIZED_FEATURES); config.addRecognizedProperties(RECOGNIZED_PROPERTIES); try { config.setFeature(ALLOW_UE_AND_NOTATION_EVENTS, false); } catch (XMLConfigurationException e) { // it wasn't a recognized feature, so we don't worry about it } }
Example 11
Source File: AbstractSAXParser.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** Default constructor. */ protected AbstractSAXParser(XMLParserConfiguration config) { super(config); config.addRecognizedFeatures(RECOGNIZED_FEATURES); config.addRecognizedProperties(RECOGNIZED_PROPERTIES); try { config.setFeature(ALLOW_UE_AND_NOTATION_EVENTS, false); } catch (XMLConfigurationException e) { // it wasn't a recognized feature, so we don't worry about it } }
Example 12
Source File: AbstractSAXParser.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** Default constructor. */ protected AbstractSAXParser(XMLParserConfiguration config) { super(config); config.addRecognizedFeatures(RECOGNIZED_FEATURES); config.addRecognizedProperties(RECOGNIZED_PROPERTIES); try { config.setFeature(ALLOW_UE_AND_NOTATION_EVENTS, false); } catch (XMLConfigurationException e) { // it wasn't a recognized feature, so we don't worry about it } }
Example 13
Source File: AbstractSAXParser.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** Default constructor. */ protected AbstractSAXParser(XMLParserConfiguration config) { super(config); config.addRecognizedFeatures(RECOGNIZED_FEATURES); config.addRecognizedProperties(RECOGNIZED_PROPERTIES); try { config.setFeature(ALLOW_UE_AND_NOTATION_EVENTS, false); } catch (XMLConfigurationException e) { // it wasn't a recognized feature, so we don't worry about it } }
Example 14
Source File: AbstractSAXParser.java From Bytecoder with Apache License 2.0 | 5 votes |
/** Default constructor. */ protected AbstractSAXParser(XMLParserConfiguration config) { super(config); config.addRecognizedFeatures(RECOGNIZED_FEATURES); config.addRecognizedProperties(RECOGNIZED_PROPERTIES); try { config.setFeature(ALLOW_UE_AND_NOTATION_EVENTS, false); } catch (XMLConfigurationException e) { // it wasn't a recognized feature, so we don't worry about it } }
Example 15
Source File: AbstractSAXParser.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** Default constructor. */ protected AbstractSAXParser(XMLParserConfiguration config) { super(config); config.addRecognizedFeatures(RECOGNIZED_FEATURES); config.addRecognizedProperties(RECOGNIZED_PROPERTIES); try { config.setFeature(ALLOW_UE_AND_NOTATION_EVENTS, false); } catch (XMLConfigurationException e) { // it wasn't a recognized feature, so we don't worry about it } }
Example 16
Source File: AbstractSAXParser.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** Default constructor. */ protected AbstractSAXParser(XMLParserConfiguration config) { super(config); config.addRecognizedFeatures(RECOGNIZED_FEATURES); config.addRecognizedProperties(RECOGNIZED_PROPERTIES); try { config.setFeature(ALLOW_UE_AND_NOTATION_EVENTS, false); } catch (XMLConfigurationException e) { // it wasn't a recognized feature, so we don't worry about it } }
Example 17
Source File: AbstractSAXParser.java From hottub with GNU General Public License v2.0 | 5 votes |
/** Default constructor. */ protected AbstractSAXParser(XMLParserConfiguration config) { super(config); config.addRecognizedFeatures(RECOGNIZED_FEATURES); config.addRecognizedProperties(RECOGNIZED_PROPERTIES); try { config.setFeature(ALLOW_UE_AND_NOTATION_EVENTS, false); } catch (XMLConfigurationException e) { // it wasn't a recognized feature, so we don't worry about it } }
Example 18
Source File: AbstractSAXParser.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** Default constructor. */ protected AbstractSAXParser(XMLParserConfiguration config) { super(config); config.addRecognizedFeatures(RECOGNIZED_FEATURES); config.addRecognizedProperties(RECOGNIZED_PROPERTIES); try { config.setFeature(ALLOW_UE_AND_NOTATION_EVENTS, false); } catch (XMLConfigurationException e) { // it wasn't a recognized feature, so we don't worry about it } }
Example 19
Source File: AbstractSAXParser.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** Default constructor. */ protected AbstractSAXParser(XMLParserConfiguration config) { super(config); config.addRecognizedFeatures(RECOGNIZED_FEATURES); config.addRecognizedProperties(RECOGNIZED_PROPERTIES); try { config.setFeature(ALLOW_UE_AND_NOTATION_EVENTS, false); } catch (XMLConfigurationException e) { // it wasn't a recognized feature, so we don't worry about it } }
Example 20
Source File: AbstractSAXParser.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** Default constructor. */ protected AbstractSAXParser(XMLParserConfiguration config) { super(config); config.addRecognizedFeatures(RECOGNIZED_FEATURES); config.addRecognizedProperties(RECOGNIZED_PROPERTIES); try { config.setFeature(ALLOW_UE_AND_NOTATION_EVENTS, false); } catch (XMLConfigurationException e) { // it wasn't a recognized feature, so we don't worry about it } }