/// <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> /// <param name="params1"></param> public JReceiver GetReceiver(JPipelineConfiguration pipe, JSerializationProperties params1) { JDotNetReceiver dnr = new JDotNetReceiver(writer); dnr.setPipelineConfiguration(pipe); dnr.setCloseAfterUse(closeAfterUse); return(params1.makeSequenceNormalizer(dnr)); }
/// <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> /// <param name="value2">Serialization parameters known to the caller of the method; typically, output /// properties defined in a stylesheet or query. These will mainly be of interest if the destination is performing serialization, but /// soem properties (such as <c>item-separator</c>) are also used in other situations.</param> public override JReceiver getReceiver(JPipelineConfiguration pipe, JSerializationProperties value2) { return(GetReceiver(pipe, value2)); }