OutputURIResolverpublic class StandardOutputResolver extends java.lang.Object implements OutputURIResolver
| Constructor | Description |
|---|---|
StandardOutputResolver() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
close(javax.xml.transform.Result result) |
Signal completion of the result document.
|
static StandardOutputResolver |
getInstance() |
Get a singular instance
|
static javax.xml.transform.Result |
makeOutputFile(java.net.URI absoluteURI) |
Create an output file (unless it already exists) and return a reference to it as a Result object
|
javax.xml.transform.Result |
resolve(java.lang.String href,
java.lang.String base) |
Resolve an output URI
|
public static StandardOutputResolver getInstance()
public javax.xml.transform.Result resolve(java.lang.String href,
java.lang.String base)
throws XPathException
resolve in interface OutputURIResolverhref - The relative URI of the output document. This corresponds to the
href attribute of the xsl:result-document instruction.base - The base URI that should be used. This is the base output URI,
normally the URI of the principal output file.XPathExceptionpublic static javax.xml.transform.Result makeOutputFile(java.net.URI absoluteURI)
throws XPathException
absoluteURI - the URI of the output file (which should use the "file" schemeXPathExceptionpublic void close(javax.xml.transform.Result result)
throws XPathException
close in interface OutputURIResolverresult - The result object returned by the previous call of resolve()XPathException