/// <summary> /// Return a <c>Receiver</c>. Saxon calls this method to obtain a Java <c>Receiver</c>, to which it then sends /// a sequence of events representing the content of an XML document. The method is intended /// primarily for internal use, and may give poor diagnostics if used incorrectly. /// </summary> /// <returns>The receiver</returns> /// <param name="pipe">The Saxon configuration as a <c>JPipelineConfiguration</c>. /// This is supplied so that the destination can /// use information from the configuration (for example, a reference to the name pool) /// to construct or configure the returned <c>Receiver</c>.</param> public JReceiver GetReceiver(JPipelineConfiguration pipe, JSerializationProperties params1) { JDotNetReceiver dnr = new JDotNetReceiver(writer); dnr.setPipelineConfiguration(pipe); dnr.setCloseAfterUse(closeAfterUse); return(params1.makeSequenceNormalizer(dnr)); }
internal JReceiver GetReceiver(JConfiguration config) { JPipelineConfiguration pipe = config.makePipelineConfiguration(); return(config.getSerializerFactory().getReceiver( GetResult(pipe), pipe, GetOutputProperties())); }
/// <summary inherit="yes"/> public override JResult GetResult(JPipelineConfiguration pipe) { builder = (treeModel == TreeModel.TinyTree ? (JBuilder) new JTinyBuilder(pipe) : (JBuilder) new JLinkedTreeBuilder(pipe)); if (baseUri != null) { builder.setBaseURI(baseUri.ToString()); } return(builder); }
/// <summary inherit="yes"/> public override JResult GetResult(JPipelineConfiguration pipe) { DotNetReceiver dnr = new DotNetReceiver(writer); dnr.setCloseAfterUse(closeAfterUse); return(dnr); //[email protected] filter = new [email protected](); //filter.setUnderlyingReceiver(dnr); //return filter; }
/// <summary inherit="yes"/> public override JResult GetResult(JPipelineConfiguration pipe) { if (outputStream != null) { return(new JStreamResult(outputStream)); } else if (writer != null) { return(new JStreamResult(writer)); } else { return(new JStreamResult(new DotNetWriter(Console.Out))); } }
/// <summary inherit="yes"/> public override JResult GetResult(JPipelineConfiguration pipe) { return(new JSink(pipe)); }
/// <summary inherit="yes"/> public override JResult GetResult(JPipelineConfiguration pipe) { return(builder); }
/// <summary inherit="yes"/> /// eturn a Receiver. Saxon calls this method to obtain a Receiver, to which it then sends /// a sequence of events representing the content of an XML document. /// </summary> /// <param name="pipe">Pipe. The Saxon pipeline configuration. This is supplied so that the destination can /// use information from the <code>PipelineConfiguration</code> (for example, a reference to the name pool) /// to construct or configure the returned Receiver.</param> /// <returns>The receiver.</returns> public override JReceiver GetReceiver(JPipelineConfiguration pipe) { builder.setPipelineConfiguration(pipe); return(builder); }
/// <summary inherit="yes"/> public override JResult GetResult(JPipelineConfiguration pipe) { DotNetReceiver dnr = new DotNetReceiver(writer); dnr.setCloseAfterUse(closeAfterUse); return dnr; //[email protected] filter = new [email protected](); //filter.setUnderlyingReceiver(dnr); //return filter; }
/// <summary inherit="yes"/> public override JResult GetResult(JPipelineConfiguration pipe) { return new JSink(pipe); }
/// <summary inherit="yes"/> public override JResult GetResult(JPipelineConfiguration pipe) { return builder; }
/// <summary inherit="yes"/> public override JResult GetResult(JPipelineConfiguration pipe) { if (outputStream != null) { return new JStreamResult(outputStream); } else if (writer != null) { return new JStreamResult(writer); } else { return new JStreamResult(new DotNetWriter(Console.Out)); } }
/// <summary> /// Get a <c>Result</c> to which the XML document can be sent as a series /// of events. This method is intended primarily for internal use. /// </summary> /// <remarks> /// The returned value must be an implementation of the JAXP <c>Result</c> interface that is /// recognized by Saxon. /// </remarks> /// <param name="pipe">Configuration information for use by the implementation</param> public abstract JReceiver GetReceiver(JPipelineConfiguration pipe);
/// <summary inherit="yes"/> /// Gets the receiver. /// </summary> /// <returns>The receiver.</returns> /// <param name="pipe">Pipe. The PipelineConfiguration</param> public override JReceiver GetReceiver(JPipelineConfiguration pipe) { return(new JSink(pipe)); }
/// <summary> /// Get a <c>Result</c> to which the XML document can be sent as a series /// of events. This method is intended primarily for internal use. /// </summary> /// <remarks> /// The returned value must be an implementation of the JAXP <c>Result</c> interface that is /// recognized by Saxon. /// </remarks> /// <param name="pipe">Configuration information for use by the implementation</param> public abstract JResult GetResult(JPipelineConfiguration pipe);
/// <summary inherit="yes"/> public override JResult GetResult(JPipelineConfiguration pipe) { builder = (treeModel == TreeModel.TinyTree ? (JBuilder)new JTinyBuilder(pipe) : (JBuilder)new JLinkedTreeBuilder(pipe)); if (baseUri != null) { builder.setBaseURI(baseUri.ToString()); } return builder; }
/// <summary> /// Return a <c>Receiver</c>. Saxon calls this method to obtain a Java <c>Receiver</c>, to which it then sends /// a sequence of events representing the content of an XML document. The method is intended /// primarily for internal use, and may give poor diagnostics if used incorrectly. /// </summary> /// <returns>The receiver</returns> /// <param name="pipe">The Saxon configuration as a <c>JPipelineConfiguration</c>. /// This is supplied so that the destination can /// use information from the configuration (for example, a reference to the name pool) /// to construct or configure the returned <c>Receiver</c>.</param> public override JReceiver getReceiver(JPipelineConfiguration pipe, JSerializationProperties value2) { return(GetReceiver(pipe, value2)); }
public override JReceiver GetReceiver(JPipelineConfiguration pipe) { return(GetReceiver(pipe.getConfiguration())); }