Methods Summary |
---|
public static DocumentBuilderSetting[] | getConfiguration1()
return new DocumentBuilderSetting[] {
DocumentBuilderSetting.notCoalescing,
DocumentBuilderSetting.notExpandEntityReferences,
DocumentBuilderSetting.notIgnoringElementContentWhitespace,
DocumentBuilderSetting.notNamespaceAware,
DocumentBuilderSetting.notValidating};
|
public static DocumentBuilderSetting[] | getConfiguration2()
return new DocumentBuilderSetting[] {
DocumentBuilderSetting.notCoalescing,
DocumentBuilderSetting.expandEntityReferences,
DocumentBuilderSetting.ignoringElementContentWhitespace,
DocumentBuilderSetting.namespaceAware,
DocumentBuilderSetting.validating};
|
public org.w3c.dom.DOMImplementation | getDOMImplementation()
return domImpl;
|
public boolean | hasFeature(java.lang.String feature, java.lang.String version)
return domImpl.hasFeature(feature, version);
|
public boolean | isCoalescing()
return false;
|
public boolean | isExpandEntityReferences()
return false;
|
public boolean | isIgnoringElementContentWhitespace()
return false;
|
public boolean | isNamespaceAware()
return factory.isNamespaceAware();
|
public boolean | isValidating()
return factory.isValidating();
|
public org.w3c.dom.Document | load(java.net.URL url)
Document doc = null;
try {
SAXParser parser = factory.newSAXParser();
HTMLHandler handler =
new HTMLHandler(htmlBuilderConstructor, getHTMLDocumentMethod);
parser.parse(url.toString(), handler);
doc = handler.getHTMLDocument();
}
catch (Exception ex) {
throw new DOMTestLoadException(ex);
}
return doc;
|
public DOMTestDocumentBuilderFactory | newInstance(DocumentBuilderSetting[] newSettings)
if (newSettings == null) {
return this;
}
DocumentBuilderSetting[] mergedSettings = mergeSettings(newSettings);
return new XercesHTMLDocumentBuilderFactory(mergedSettings);
|