Methods Summary |
---|
public java.lang.String | getContentType()
return "text/html";
|
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 false;
|
public boolean | isValidating()
return false;
|
public org.w3c.dom.Document | load(java.net.URL url)
Document doc = null;
try {
java.io.InputStream stream = url.openStream();
Object tidyObj = tidyConstructor.newInstance(new Object[0]);
doc = (Document) parseDOMMethod.invoke(tidyObj,
new Object[] {stream, null});
}
catch (InvocationTargetException ex) {
throw new DOMTestLoadException(ex.getTargetException());
}
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 JTidyDocumentBuilderFactory(mergedSettings);
|