org.apache.cocoon.stax.component
Class CleaningTransformer
java.lang.Object
org.apache.cocoon.pipeline.component.AbstractPipelineComponent
org.apache.cocoon.stax.AbstractStAXPipelineComponent
org.apache.cocoon.stax.AbstractStAXProducer
org.apache.cocoon.stax.AbstractStAXTransformer
org.apache.cocoon.stax.component.CleaningTransformer
- All Implemented Interfaces:
- Consumer, PipelineComponent, Producer, StAXConsumer, StAXPipelineComponent, StAXProducer
public class CleaningTransformer
- extends AbstractStAXTransformer
Transformer which is used to clean a xml document from all whitespaces, comments and namespace
start prefixes and end prefixes. Works similar to the
CleaningTransformer for SAX pipelines.
|
Method Summary |
void |
produceEvents()
Template method which has to produce at least one XMLEvent and should add this to the
internal Queue with the #add(XMLEvent) and #addAll(Collection)
methods. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CleaningTransformer
public CleaningTransformer()
produceEvents
public void produceEvents()
throws XMLStreamException
- Template method which has to produce at least one
XMLEvent and should add this to the
internal Queue with the #add(XMLEvent) and #addAll(Collection)
methods. If no XMLEvent is added by this method to the internal Queue an
exception is thrown.
- Specified by:
produceEvents in class AbstractStAXTransformer
- Throws:
XMLStreamException - thrown if the StAXProducer.nextEvent() or the
StAXProducer.peek() method, called in the AbstractStAXTransformer.produceEvents() method
throw any exceptions they have to be forwarded to the end of the pipeline.- See Also:
AbstractStAXTransformer.produceEvents()
Copyright © 2008-2011 The Apache Software Foundation. All Rights Reserved.