|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.pipeline.component.AbstractPipelineComponent
org.apache.cocoon.stax.AbstractStAXPipelineComponent
org.apache.cocoon.stax.AbstractStAXProducer
org.apache.cocoon.stax.component.XMLGenerator
public class XMLGenerator
General element generator for a StAX pipeline directly taking all elements from an internal
XMLEventReader created from an InputStream or directly from an URL.
| Constructor Summary | |
|---|---|
XMLGenerator()
|
|
XMLGenerator(InputStream inputStream)
Creating an XMLGenerator with an XMLEventReader from an InputStream. |
|
| Method Summary | |
|---|---|
protected InputStream |
copyInputstream(URLConnection connection)
|
void |
execute()
|
boolean |
hasNext()
Check if there are more events. |
XMLEvent |
nextEvent()
Get the next XMLEvent |
XMLEvent |
peek()
Check the next XMLEvent without reading it from the stream. |
void |
setConfiguration(Map<String,? extends Object> configuration)
Pass component specific configuration parameters to the pipeline component in a generic way. |
| Methods inherited from class org.apache.cocoon.stax.AbstractStAXProducer |
|---|
getConsumer, setConsumer |
| 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, toString, wait, wait, wait |
| Methods inherited from interface org.apache.cocoon.pipeline.component.PipelineComponent |
|---|
finish, setup |
| Constructor Detail |
|---|
public XMLGenerator()
public XMLGenerator(InputStream inputStream)
XMLGenerator with an XMLEventReader from an InputStream.
inputStream - from which a XMLEventReader is produced read from during the
execute() method call.
SetupException - if any error occurred during the creation of the
XMLEventReader.| Method Detail |
|---|
public void setConfiguration(Map<String,? extends Object> configuration)
PipelineComponent
setConfiguration in interface PipelineComponentsetConfiguration in class AbstractPipelineComponentconfiguration - The Map of configuration parameters.
protected InputStream copyInputstream(URLConnection connection)
throws IOException
IOExceptionpublic void execute()
execute in interface StarterStarter.execute()public boolean hasNext()
hasNext in interface StAXProducerStAXProducer.hasNext()
public XMLEvent nextEvent()
throws XMLStreamException
nextEvent in interface StAXProducerXMLStreamExceptionStAXProducer.nextEvent()
public XMLEvent peek()
throws XMLStreamException
peek in interface StAXProducerXMLStreamExceptionStAXProducer.peek()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||