|
INRIA & FluxMedia | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xml.sax.helpers.DefaultHandler | +--fr.fluxmedia.transmorpher.engine.BufferingHandler | +--fr.fluxmedia.transmorpher.engine.LoopHandler | +--fr.fluxmedia.transmorpher.engine.TestHandler
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); - it takes a buffer of its previous input for the purpose of comparison); NEED A LIFO
Field Summary | |
(package private) boolean |
diff
true if the wStack and iStack have been found different (Test) |
(package private) boolean |
isInit
true if the wStack and iStack have been found different (Test) |
(package private) Fifo |
wStack
The witness stack |
Fields inherited from class fr.fluxmedia.transmorpher.engine.LoopHandler |
isDone, outhdl, processHandler |
Fields inherited from class fr.fluxmedia.transmorpher.engine.BufferingHandler |
isCurrent, iStack, outputHandler |
Constructor Summary | |
TestHandler()
the constructor |
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
The characters command |
void |
endDocument()
The endDocument command |
void |
endElement(java.lang.String ns,
java.lang.String localName,
java.lang.String name)
The endElement command |
void |
endLoop()
endLoop() is called by the calling process after the last loop for flushing the channel out of the repeat process |
void |
endPrefixMapping(java.lang.String prefix)
The endPrefixMapping command |
void |
flushBuffer()
Compute the stack of contentHandlerInfo . |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
The ignorableWhitespace command |
boolean |
isDiff()
isDiff() is called by the calling process after each Loop for knowing if the input and output of the channel are different or not |
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 |
processingInstruction(java.lang.String target,
java.lang.String data)
The processingInstruction command |
void |
setDocumentLocator(org.xml.sax.Locator locator)
The setDocumentLocator command |
void |
skippedEntity(java.lang.String name)
The skippedEntity command |
void |
startDocument()
The startDocument command |
void |
startElement(java.lang.String ns,
java.lang.String localName,
java.lang.String name,
org.xml.sax.Attributes atts)
The startElement command |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
The startPrefixMapping command |
Methods inherited from class fr.fluxmedia.transmorpher.engine.LoopHandler |
initLoop, setInnerHandler, setOutputHandler |
Methods inherited from class fr.fluxmedia.transmorpher.engine.BufferingHandler |
add, isCurrent, isDone, pop, setCurrent, setDone, size |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
error, fatalError, notationDecl, resolveEntity, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
|
Field Detail |
Fifo wStack
boolean diff
boolean isInit
Constructor Detail |
public TestHandler()
Method Detail |
public void newLoop() throws org.xml.sax.SAXException
newLoop
in class LoopHandler
org.xml.sax.SAXException
- Description of the Exceptionpublic void endLoop() throws org.xml.sax.SAXException
endLoop
in class LoopHandler
org.xml.sax.SAXException
- Description of the Exceptionpublic boolean isDiff()
public void startElement(java.lang.String ns, java.lang.String localName, java.lang.String name, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
in class BufferingHandler
ns
- The Namespace URI.localName
- The local name without prefix.name
- The local name with prefix.atts
- The attributes attached to the element.org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.public void endElement(java.lang.String ns, java.lang.String localName, java.lang.String name) throws org.xml.sax.SAXException
endElement
in class BufferingHandler
ns
- The Namespace URI.localName
- The local name without prefix.name
- The local name with prefix.org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.public void startDocument() throws org.xml.sax.SAXException
startDocument
in class BufferingHandler
org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.public void endDocument() throws org.xml.sax.SAXException
endDocument
in class BufferingHandler
org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in class BufferingHandler
locator
- An object that can return the location of any SAX document event.public void skippedEntity(java.lang.String name) throws org.xml.sax.SAXException
skippedEntity
in class BufferingHandler
name
- The name of the skipped entity. If it is a parameter entity, the name will begin with '%', and if it is the external DTD subset, it will be the string "[dtd]".org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException
processingInstruction
in class BufferingHandler
target
- The processing instruction target.data
- The processing instruction data, or null if none was supplied. The data does not include any whitespace separating it from the target.org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.public void ignorableWhitespace(char[] ch, int start, int length) throws org.xml.sax.SAXException
ignorableWhitespace
in class BufferingHandler
ch
- The characters from the XML document.start
- The start position in the array.length
- The number of characters to read from the array.org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException
characters
in class BufferingHandler
ch
- The characters from the XML document.start
- The start position in the array.length
- The number of characters to read from the array.org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws org.xml.sax.SAXException
startPrefixMapping
in class BufferingHandler
prefix
- The prefix that was being mapping.uri
- The Namespace URI the prefix is mapped to.org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.public void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXException
endPrefixMapping
in class BufferingHandler
prefix
- The prefix that was being mapping.org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.public void flushBuffer() throws org.xml.sax.SAXException
flushBuffer
in class BufferingHandler
fr.fluxmedia.transmorpher.engine.BufferingHandler
org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.
|
INRIA & FluxMedia | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |