Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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.

Constructor Summary
`StAXToSAXPipelineAdapter()`

Method Summary
`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.
`void` | `setConsumer(Consumer consumer)`
`void` | `setParent(StAXProducer parent)` Used to connect a consumer to it's producer.

Methods inherited from class org.apache.cocoon.pipeline.component.AbstractPipelineComponent
`finish, setConfiguration, setup`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods inherited from interface org.apache.cocoon.pipeline.component.PipelineComponent
`finish, setConfiguration, setup`

Constructor Detail

### StAXToSAXPipelineAdapter

    public StAXToSAXPipelineAdapter()

Method Detail

### 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)`

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.