org.apache.cocoon.stax.converter
Class StAXToSAXPipelineAdapter
java.lang.Object
org.apache.cocoon.pipeline.component.AbstractPipelineComponent
org.apache.cocoon.stax.converter.StAXToSAXPipelineAdapter
- All Implemented Interfaces:
- Consumer, PipelineComponent, Producer, SAXPipelineComponent, SAXProducer, StAXConsumer, StAXPipelineComponent
public class StAXToSAXPipelineAdapter
- extends AbstractPipelineComponent
- implements StAXConsumer, SAXProducer
A transformer which transforms between a StAX-only pipeline and a SAX-only pipeline. The first
part of the pipeline have to be out of StAX-Components, where the second part have to be out of
SAX-components.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StAXToSAXPipelineAdapter
public StAXToSAXPipelineAdapter()
setConsumer
public void setConsumer(Consumer consumer)
-
- Specified by:
setConsumer
in interface Producer
- See Also:
Producer.setConsumer(org.apache.cocoon.pipeline.component.Consumer)
initiatePullProcessing
public void initiatePullProcessing()
- Since the workflow in a pull pipeline is completely inverted compared to
for example a SAX pipeline, this method is required to push the
Starter.execute()
to the Finisher
which should start
processing.
- Specified by:
initiatePullProcessing
in interface StAXConsumer
- See Also:
StAXConsumer.initiatePullProcessing()
setParent
public void setParent(StAXProducer parent)
- Used to connect a consumer to it's producer. As to the nature of the
control inversion and pulling it is required to specify a parent, which
provides the consumer with events to consume. This function is called
when the pipeline sets it's consumers.
- Specified by:
setParent
in interface StAXConsumer
- See Also:
StAXConsumer.setParent(org.apache.cocoon.stax.StAXProducer)
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.