org.apache.cocoon.sax.component
Class XMLGenerator
java.lang.Object
org.apache.cocoon.pipeline.component.AbstractPipelineComponent
org.apache.cocoon.sax.AbstractSAXPipelineComponent
org.apache.cocoon.sax.AbstractSAXProducer
org.apache.cocoon.sax.AbstractSAXGenerator
org.apache.cocoon.sax.component.XMLGenerator
- All Implemented Interfaces:
- CachingPipelineComponent, PipelineComponent, Producer, Starter, SAXPipelineComponent, SAXProducer
public class XMLGenerator
- extends AbstractSAXGenerator
- implements CachingPipelineComponent
General purpose SAX generator that produces SAX events from
different sources.
XMLGenerator
public XMLGenerator()
XMLGenerator
public XMLGenerator(byte[] bytes)
XMLGenerator
public XMLGenerator(byte[] bytes,
String encoding)
XMLGenerator
public XMLGenerator(File file)
XMLGenerator
public XMLGenerator(InputStream inputStream)
XMLGenerator
public XMLGenerator(Node node)
XMLGenerator
public XMLGenerator(org.apache.cocoon.xml.sax.SAXBuffer saxBuffer)
XMLGenerator
public XMLGenerator(String xmlString)
XMLGenerator
public XMLGenerator(URL url)
constructCacheKey
public CacheKey constructCacheKey()
- Specified by:
constructCacheKey
in interface CachingPipelineComponent
execute
public void execute()
- Specified by:
execute
in interface Starter
setConfiguration
public void setConfiguration(Map<String,? extends Object> configuration)
- Pass component specific configuration parameters to the pipeline
component in a generic way. This is useful in environments that
automatically assemble pipelines with their components and can't use the
components constructors or setters.
- Specified by:
setConfiguration
in interface PipelineComponent
- Overrides:
setConfiguration
in class AbstractPipelineComponent
- Parameters:
configuration
- The Map
of configuration parameters.- See Also:
AbstractPipelineComponent.setConfiguration(java.util.Map)
toString
public String toString()
- Overrides:
toString
in class AbstractSAXProducer
Copyright © 2008-2012 The Apache Software Foundation. All Rights Reserved.