|
|||||||||
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(InputStream inputStream)
Creating an XMLGenerator with an XMLEventReader from an InputStream . |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.cocoon.stax.AbstractStAXProducer |
---|
getConsumer, setConsumer |
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 |
---|
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 execute()
execute
in interface Starter
Starter.execute()
public boolean hasNext()
hasNext
in interface StAXProducer
StAXProducer.hasNext()
public XMLEvent nextEvent() throws XMLStreamException
nextEvent
in interface StAXProducer
XMLStreamException
StAXProducer.nextEvent()
public XMLEvent peek() throws XMLStreamException
peek
in interface StAXProducer
XMLStreamException
StAXProducer.peek()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |