Methods Summary |
---|
public java.lang.String | addExtension(java.lang.String testFileName)Adds any specialized extension required by the implementation.
return testFileName + ".svg";
|
public java.lang.String | getContentType()Gets content type.
return "image/svg+xml";
|
public org.w3c.dom.DOMImplementation | getDOMImplementation()Gets DOMImplementation.
//
// get DOM implementation
//
if (domImpl == null) {
try {
Class svgDomImplClass =
ClassLoader.getSystemClassLoader().loadClass(
"org.apache.batik.dom.svg.SVGDOMImplementation");
Method getImpl =
svgDomImplClass.getMethod(
"getDOMImplementation",
new Class[0]);
domImpl =
(DOMImplementation) getImpl.invoke(null, new Object[0]);
} catch (Exception ex) {
return null;
}
}
return domImpl;
|
public boolean | hasFeature(java.lang.String feature, java.lang.String version)Determines if the implementation supports the specified feature.
return getDOMImplementation().hasFeature(feature, version);
|
public boolean | isCoalescing()Indicates whether the implementation combines text and cdata nodes.
return false;
|
public boolean | isExpandEntityReferences()Indicates whether the implementation expands entity references.
return false;
|
public boolean | isIgnoringElementContentWhitespace()Indicates whether the implementation ignores
element content whitespace.
return false;
|
public boolean | isNamespaceAware()Indicates whether the implementation is namespace aware.
return true;
|
public boolean | isValidating()Indicates whether the implementation is validating.
return false;
|
public org.w3c.dom.Document | load(java.net.URL url)Loads specified URL.
try {
java.io.InputStream stream = url.openStream();
return (org.w3c.dom.Document) createDocument.invoke(
domFactory,
new Object[] {url.toString(), stream});
} catch (InvocationTargetException ex) {
ex.printStackTrace();
throw new DOMTestLoadException(ex.getTargetException());
} catch (Exception ex) {
ex.printStackTrace();
throw new DOMTestLoadException(ex);
}
|
public DOMTestDocumentBuilderFactory | newInstance(DocumentBuilderSetting[] newSettings)Create new instance of document builder factory
reflecting specified settings.
if (newSettings == null) {
return this;
}
DocumentBuilderSetting[] mergedSettings = mergeSettings(newSettings);
return new BatikTestDocumentBuilderFactory(mergedSettings);
|