コード例 #1
0
        /// <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));
        }
コード例 #2
0
        /// <summary>
        /// Return a Receiver. Saxon calls this method to obtain a Java Receiver, 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">JPipelineConfiguration. The Saxon configuration. 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 Receiver.</param>
        public override JReceiver GetReceiver(JPipelineConfiguration pipe)
        {
            JDotNetReceiver dnr = new JDotNetReceiver(writer);

            dnr.setPipelineConfiguration(pipe);
            dnr.setCloseAfterUse(closeAfterUse);
            return(dnr);
            //[email protected] filter = new [email protected]();
            //filter.setUnderlyingReceiver(dnr);
            //return filter;
        }