|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.saxon.event.StandardOutputResolver
public class StandardOutputResolver
This class defines the default OutputURIResolver. This is a counterpart to the JAXP URIResolver, but is used to map the URI of a secondary result document to a Result object which acts as the destination for the new document.
Constructor Summary | |
---|---|
StandardOutputResolver()
|
Method Summary | |
---|---|
void |
close(Result result)
Signal completion of the result document. |
static StandardOutputResolver |
getInstance()
Get a singular instance |
static Result |
makeOutputFile(URI absoluteURI)
Create an output file (unless it already exists) and return a reference to it as a Result object |
Result |
resolve(String href,
String base)
Resolve an output URI |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StandardOutputResolver()
Method Detail |
---|
public static StandardOutputResolver getInstance()
public Result resolve(String href, String base) throws XPathException
resolve
in interface OutputURIResolver
href
- 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.
XPathException
public static Result makeOutputFile(URI absoluteURI) throws XPathException
absoluteURI
- the URI of the output file (which should use the "file" scheme
XPathException
public void close(Result result) throws XPathException
close
in interface OutputURIResolver
result
- The result object returned by the previous call of resolve()
XPathException
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |