Beispiel #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));
        }
Beispiel #2
0
        internal JReceiver GetReceiver(JConfiguration config)
        {
            JPipelineConfiguration pipe = config.makePipelineConfiguration();

            return(config.getSerializerFactory().getReceiver(
                       GetResult(pipe),
                       pipe,
                       GetOutputProperties()));
        }
Beispiel #3
0
        /// <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);
        }
Beispiel #4
0
        /// <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;
        }
Beispiel #5
0
        /// <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)));
            }
        }
Beispiel #6
0
        /// <summary inherit="yes"/>

        public override JResult GetResult(JPipelineConfiguration pipe)
        {
            return(new JSink(pipe));
        }
Beispiel #7
0
        /// <summary inherit="yes"/>

        public override JResult GetResult(JPipelineConfiguration pipe)
        {
            return(builder);
        }
Beispiel #8
0
        /// <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);
        }
Beispiel #9
0
        /// <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;
        }
Beispiel #10
0
        /// <summary inherit="yes"/>

        public override JResult GetResult(JPipelineConfiguration pipe)
        {
            return new JSink(pipe);
        }
Beispiel #11
0
        /// <summary inherit="yes"/>

        public override JResult GetResult(JPipelineConfiguration pipe)
        {
            return builder;
        }
Beispiel #12
0
        /// <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));
            }
        }
Beispiel #13
0
        /// <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);
Beispiel #14
0
 /// <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));
 }
Beispiel #15
0
        /// <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);
Beispiel #16
0
        /// <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);
Beispiel #17
0
        /// <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;
        }
Beispiel #18
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 override JReceiver getReceiver(JPipelineConfiguration pipe, JSerializationProperties value2)
 {
     return(GetReceiver(pipe, value2));
 }
Beispiel #19
0
 public override JReceiver GetReceiver(JPipelineConfiguration pipe)
 {
     return(GetReceiver(pipe.getConfiguration()));
 }