/** * Return 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. * * @param pipe 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 params * @return the Receiver to which events are to be sent. It is the caller's responsibility to * initialize this Receiver with a {@link net.sf.saxon.event.PipelineConfiguration} before calling * its <code>open()</code> method. * @throws net.sf.saxon.s9api.SaxonApiException * if the Receiver cannot be created */ /*@NotNull*/ public Receiver getReceiver(PipelineConfiguration pipe, SerializationProperties params) throws SaxonApiException { return new TeeOutputter(dest0.getReceiver(pipe, params), dest1.getReceiver(pipe, params)); }
seq.setPipelineConfiguration(controller.makePipelineConfiguration()); seq.open(); TeeOutputter tee = new TeeOutputter(context.getReceiver(), seq); tee.setPipelineConfiguration(controller.makePipelineConfiguration()); c2.setTemporaryReceiver(tee);
seq.setPipelineConfiguration(controller.makePipelineConfiguration()); seq.open(); TeeOutputter tee = new TeeOutputter(context.getReceiver(), seq); tee.setPipelineConfiguration(controller.makePipelineConfiguration()); c2.setTemporaryReceiver(tee);
seq.setPipelineConfiguration(controller.makePipelineConfiguration()); seq.open(); TeeOutputter tee = new TeeOutputter(context.getReceiver(), seq); tee.setPipelineConfiguration(controller.makePipelineConfiguration()); c2.setTemporaryReceiver(tee);
/** * Return 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. * * @param pipe 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 params * @return the Receiver to which events are to be sent. It is the caller's responsibility to * initialize this Receiver with a {@link net.sf.saxon.event.PipelineConfiguration} before calling * its <code>open()</code> method. * @throws net.sf.saxon.s9api.SaxonApiException * if the Receiver cannot be created */ /*@NotNull*/ public Receiver getReceiver(PipelineConfiguration pipe, SerializationProperties params) throws SaxonApiException { return new TeeOutputter(dest0.getReceiver(pipe, params), dest1.getReceiver(pipe, params)); }