/** * Set the URI resolver for secondary output documents. * <p> * XSLT 2.0 introduces the <code>xsl:result-document</code instruction, * allowing a transformation to have multiple result documents. JAXP does * not yet support this capability. This method allows an OutputURIResolver * to be specified that takes responsibility for deciding the destination * (and, if it wishes, the serialization properties) of secondary output files. * <p> * This method may eventually be superseded by a standard JAXP method. * * @param resolver An object that implements the OutputURIResolver * interface, or null. * @since 8.4 */ public void setOutputURIResolver(OutputURIResolver resolver) { if (resolver==null) { outputURIResolver = config.getOutputURIResolver(); } else { outputURIResolver = resolver; } }
/** * Set the URI resolver for secondary output documents. * <p> * XSLT 2.0 introduces the <code>xsl:result-document</code instruction, * allowing a transformation to have multiple result documents. JAXP does * not yet support this capability. This method allows an OutputURIResolver * to be specified that takes responsibility for deciding the destination * (and, if it wishes, the serialization properties) of secondary output files. * <p> * This method may eventually be superseded by a standard JAXP method. * * @param resolver An object that implements the OutputURIResolver * interface, or null. * @since 8.4 */ public void setOutputURIResolver(OutputURIResolver resolver) { if (resolver==null) { outputURIResolver = config.getOutputURIResolver(); } else { outputURIResolver = resolver; } }
/** * Get the output URI resolver. * * @return the user-supplied URI resolver if there is one, or the * system-defined one otherwise. * @see #setOutputURIResolver * @since 8.4. Retained for backwards compatibility in 9.9; superseded by * {@link #getResultDocumentResolver()} */ /*@Nullable*/ public OutputURIResolver getOutputURIResolver() { if (resultDocumentResolver instanceof OutputURIResolverWrapper) { return ((OutputURIResolverWrapper) resultDocumentResolver).getOutputURIResolver(); } else { return getConfiguration().getOutputURIResolver(); } }
/** * Get the output URI resolver. * * @return the user-supplied URI resolver if there is one, or the * system-defined one otherwise. * @see #setOutputURIResolver * @since 8.4. Retained for backwards compatibility in 9.9; superseded by * {@link #getResultDocumentResolver()} */ /*@Nullable*/ public OutputURIResolver getOutputURIResolver() { if (resultDocumentResolver instanceof OutputURIResolverWrapper) { return ((OutputURIResolverWrapper) resultDocumentResolver).getOutputURIResolver(); } else { return getConfiguration().getOutputURIResolver(); } }
/** * Set the URI resolver for secondary output documents. * <p>XSLT 2.0 introduces the <code>xsl:result-document</code> instruction, * allowing a transformation to have multiple result documents. JAXP does * not yet support this capability. This method allows an OutputURIResolver * to be specified that takes responsibility for deciding the destination * (and, if it wishes, the serialization properties) of secondary output files.</p> * <p>In Saxon 9.5, because xsl:result-document is now multi-threaded, the * supplied resolver is cloned each time a new result document is created. * The cloned resolved is therefore able to maintain information about * the specific result document for use when its close() method is called, * without worrying about thread safety.</p> * * @param resolver An object that implements the OutputURIResolver * interface, or null. * @since 8.4. Retained for backwards compatibility in 9.9, but superseded * by {@link #setResultDocumentResolver(ResultDocumentResolver)} */ public void setOutputURIResolver(/*@Nullable*/ OutputURIResolver resolver) { OutputURIResolver our = resolver == null ? getConfiguration().getOutputURIResolver() : resolver; setResultDocumentResolver(new OutputURIResolverWrapper(our)); }
/** * Set the URI resolver for secondary output documents. * <p>XSLT 2.0 introduces the <code>xsl:result-document</code> instruction, * allowing a transformation to have multiple result documents. JAXP does * not yet support this capability. This method allows an OutputURIResolver * to be specified that takes responsibility for deciding the destination * (and, if it wishes, the serialization properties) of secondary output files.</p> * <p>In Saxon 9.5, because xsl:result-document is now multi-threaded, the * supplied resolver is cloned each time a new result document is created. * The cloned resolved is therefore able to maintain information about * the specific result document for use when its close() method is called, * without worrying about thread safety.</p> * * @param resolver An object that implements the OutputURIResolver * interface, or null. * @since 8.4. Retained for backwards compatibility in 9.9, but superseded * by {@link #setResultDocumentResolver(ResultDocumentResolver)} */ public void setOutputURIResolver(/*@Nullable*/ OutputURIResolver resolver) { OutputURIResolver our = resolver == null ? getConfiguration().getOutputURIResolver() : resolver; setResultDocumentResolver(new OutputURIResolverWrapper(our)); }
return getOutputURIResolver(); return getOutputURIResolver().getClass().getName();
return (T) getOutputURIResolver(); return (T) getOutputURIResolver().getClass().getName();
return (T) getOutputURIResolver(); return (T) getOutputURIResolver().getClass().getName();
standardURIResolver = config.getSystemURIResolver(); userURIResolver = config.getURIResolver(); outputURIResolver = config.getOutputURIResolver(); schemaURIResolver = config.getSchemaURIResolver(); unparsedTextResolver = new StandardUnparsedTextResolver();
standardURIResolver = config.getSystemURIResolver(); userURIResolver = config.getURIResolver(); outputURIResolver = config.getOutputURIResolver(); schemaURIResolver = config.getSchemaURIResolver(); unparsedTextResolver = new StandardUnparsedTextResolver();
OutputURIResolver uriResolver = config.getOutputURIResolver(); CollectionFinder collectionFinder = config.getCollectionFinder(); UnparsedTextURIResolver unparsedTextURIResolver = runtime.getResolver();
OutputURIResolver uriResolver = config.getOutputURIResolver(); CollectionFinder collectionFinder = config.getCollectionFinder(); UnparsedTextURIResolver unparsedTextURIResolver = runtime.getResolver();