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

Constructor Summary
`XMLGenerator()`
`XMLGenerator(byte[] bytes)`
`XMLGenerator(byte[] bytes, String encoding)`
`XMLGenerator(File file)`
`XMLGenerator(InputStream inputStream)`
`XMLGenerator(Node node)`
`XMLGenerator(org.apache.cocoon.xml.sax.SAXBuffer saxBuffer)`
`XMLGenerator(String xmlString)`
`XMLGenerator(URL url)`

Method Summary
`CacheKey` | `constructCacheKey()`
`void` | `execute()`
`void` | `setConfiguration(Map<String,? extends Object> configuration)` Pass component specific configuration parameters to the pipeline component in a generic way.
`String` | `toString()`

Methods inherited from class org.apache.cocoon.sax.AbstractSAXProducer
`getSAXConsumer, setConsumer, setSAXConsumer`

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

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

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

Constructor Detail

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

Method Detail

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

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-2010 The Apache Software Foundation. All Rights Reserved.