|
INRIA & FluxMedia | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
fr.fluxmedia.transmorpher.engine.BufferingHandler
fr.fluxmedia.transmorpher.engine.LoopHandler
class LoopHandler
Implements the SAX events circulation and buffering in a loop-channel LoopHandler is the handler of a Loop channel. It is a BufferingHandler in two respects: - it takes a buffer of its output (which can be flushed either to the process or to the out);
Field Summary | |
---|---|
(package private) boolean |
isDone
true if the handler is finished |
(package private) org.xml.sax.ContentHandler |
outhdl
The regular output handler |
(package private) org.xml.sax.ContentHandler |
processHandler
The handler of the inner process |
Fields inherited from class fr.fluxmedia.transmorpher.engine.BufferingHandler |
---|
isCurrent, iStack, outputHandler |
Constructor Summary | |
---|---|
LoopHandler()
the constructor |
Method Summary | |
---|---|
void |
endLoop()
endLoop() is called by the calling process after the last loop for flushing the channel out of the repeat process |
void |
initLoop()
Initializes the loop. |
void |
newLoop()
newLoop() is called by the associated LoopHandler for signifying that it has processed previous document and is ready to get a new one (unfortunately, this should be triggered by the calling process at each loop) |
void |
setInnerHandler(org.xml.sax.ContentHandler h)
Sets the innerHandler attribute of the LoopHandler object |
void |
setOutputHandler(org.xml.sax.ContentHandler h)
Sets the output handler. |
Methods inherited from class fr.fluxmedia.transmorpher.engine.BufferingHandler |
---|
add, characters, endDocument, endElement, endPrefixMapping, flushBuffer, ignorableWhitespace, isCurrent, isDone, pop, processingInstruction, setCurrent, setDocumentLocator, setDone, size, skippedEntity, startDocument, startElement, startPrefixMapping |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
---|
error, fatalError, notationDecl, resolveEntity, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
org.xml.sax.ContentHandler outhdl
org.xml.sax.ContentHandler processHandler
boolean isDone
Constructor Detail |
---|
public LoopHandler()
Method Detail |
---|
public void setOutputHandler(org.xml.sax.ContentHandler h)
h
- The new outputHandler valuepublic void setInnerHandler(org.xml.sax.ContentHandler h)
h
- The new innerHandler valuepublic void initLoop()
public void newLoop() throws org.xml.sax.SAXException
org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.public void endLoop() throws org.xml.sax.SAXException
org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.
|
INRIA & FluxMedia | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |