|
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
Field Summary | |
(package private) boolean |
isCurrent
true if the content handler is the current one |
(package private) boolean |
isDone
true if the handler is finished |
(package private) Fifo |
iStack
the stack of events info |
(package private) org.xml.sax.ContentHandler |
outputHandler
The handler to which the output will be flushed |
Constructor Summary | |
BufferingHandler()
the constructor |
|
BufferingHandler(org.xml.sax.ContentHandler h)
the constructor. |
Method Summary | |
void |
add(ContentHandlerInfo p)
Add an element in the stack |
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 |
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 |
isCurrent()
test if the mixer is the current mixer |
boolean |
isDone()
Test if the handling is done |
ContentHandlerInfo |
pop()
Remove the first element in the stack |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
The processingInstruction command |
void |
setCurrent(boolean pCurrent)
set the curent attribut |
void |
setDocumentLocator(org.xml.sax.Locator locator)
The setDocumentLocator command |
void |
setDone(boolean pDone)
Set the done attribute |
int |
size()
return the size of the stack |
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 org.xml.sax.helpers.DefaultHandler |
error, fatalError, notationDecl, resolveEntity, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
|
Field Detail |
Fifo iStack
org.xml.sax.ContentHandler outputHandler
boolean isCurrent
boolean isDone
Constructor Detail |
public BufferingHandler()
public BufferingHandler(org.xml.sax.ContentHandler h)
h
- the output handlerMethod Detail |
public final void add(ContentHandlerInfo p)
p
- The ContentHandlerInfo to add to the stackpublic final ContentHandlerInfo pop()
public final int size()
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 interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
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 interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
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 interface org.xml.sax.ContentHandler
startDocument
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.public void setDocumentLocator(org.xml.sax.Locator locator)
setDocumentLocator
in interface org.xml.sax.ContentHandler
setDocumentLocator
in class org.xml.sax.helpers.DefaultHandler
locator
- - An object that can return the location of any SAX document event.public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
endDocument
in class org.xml.sax.helpers.DefaultHandler
org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.public void skippedEntity(java.lang.String name) throws org.xml.sax.SAXException
skippedEntity
in interface org.xml.sax.ContentHandler
skippedEntity
in class org.xml.sax.helpers.DefaultHandler
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 interface org.xml.sax.ContentHandler
processingInstruction
in class org.xml.sax.helpers.DefaultHandler
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 interface org.xml.sax.ContentHandler
ignorableWhitespace
in class org.xml.sax.helpers.DefaultHandler
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 interface org.xml.sax.ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
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 interface org.xml.sax.ContentHandler
startPrefixMapping
in class org.xml.sax.helpers.DefaultHandler
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 interface org.xml.sax.ContentHandler
endPrefixMapping
in class org.xml.sax.helpers.DefaultHandler
prefix
- The prefix that was being mapping.org.xml.sax.SAXException
- Any SAX exception, possibly wrapping another exception.public void setDone(boolean pDone)
pDone
- The new done valuepublic final boolean isDone()
public final boolean isCurrent()
isCurrent
in interface TmHandler
public final void setCurrent(boolean pCurrent)
setCurrent
in interface TmHandler
pCurrent
- The new current valuepublic void flushBuffer() 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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |