fr.fluxmedia.transmorpher.engine
Class LoopHandler
java.lang.Object
|
+--org.xml.sax.helpers.DefaultHandler
|
+--fr.fluxmedia.transmorpher.engine.BufferingHandler
|
+--fr.fluxmedia.transmorpher.engine.LoopHandler
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, TmHandler
- Direct Known Subclasses:
- TestHandler
- class LoopHandler
- extends BufferingHandler
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);
- Author:
- jerome.euzenat@inrialpes.fr
- See Also:
- "SAX 2.0 & JDK 1.3"
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 |
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, registerNatives, toString, wait, wait, wait |
outhdl
org.xml.sax.ContentHandler outhdl
- The regular output handler
processHandler
org.xml.sax.ContentHandler processHandler
- The handler of the inner process
isDone
boolean isDone
- true if the handler is finished
LoopHandler
public LoopHandler()
- the constructor
setOutputHandler
public void setOutputHandler(org.xml.sax.ContentHandler h)
- Sets the output handler.
- Parameters:
h
- The new outputHandler value
setInnerHandler
public void setInnerHandler(org.xml.sax.ContentHandler h)
- Sets the innerHandler attribute of the LoopHandler object
- Parameters:
h
- The new innerHandler value
initLoop
public void initLoop()
- Initializes the loop.
newLoop
public void newLoop()
throws org.xml.sax.SAXException
- 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)
- Throws:
org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.
endLoop
public void endLoop()
throws org.xml.sax.SAXException
- endLoop() is called by the calling process after the last loop for
flushing the channel out of the repeat process
- Throws:
org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.
..no bottom yet...