org.bibop.xml.utils
Class DOMStreamer
java.lang.Object
|
+--org.bibop.xml.utils.DOMStreamer
- All Implemented Interfaces:
- XMLProducer
- public class DOMStreamer
- extends java.lang.Object
- implements XMLProducer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
xmlConsumer
protected XMLConsumer xmlConsumer
contentHandler
protected org.xml.sax.ContentHandler contentHandler
lexicalHandler
protected org.xml.sax.ext.LexicalHandler lexicalHandler
DOMStreamer
public DOMStreamer()
DOMStreamer
public DOMStreamer(XMLConsumer consumer)
DOMStreamer
public DOMStreamer(org.xml.sax.ContentHandler content)
DOMStreamer
public DOMStreamer(org.xml.sax.ContentHandler content,
org.xml.sax.ext.LexicalHandler lexical)
DOMStreamer
public DOMStreamer(org.xml.sax.ext.LexicalHandler lexical)
toSax
public void toSax()
throws org.xml.sax.SAXException
- Creates the SAX events once processing has finished.
- Specified by:
toSax
in interface XMLProducer
- Throws:
org.xml.sax.SAXException
setConsumer
public void setConsumer(XMLConsumer consumer)
- Description copied from interface:
XMLProducer
- Set the
XMLConsumer
that will receive XML data.
- Specified by:
setConsumer
in interface XMLProducer
setContentHandler
public void setContentHandler(org.xml.sax.ContentHandler handler)
- Description copied from interface:
XMLProducer
- Set the
ContentHandler
that will receive XML data.
- Specified by:
setContentHandler
in interface XMLProducer
setLexicalHandler
public void setLexicalHandler(org.xml.sax.ext.LexicalHandler handler)
- Description copied from interface:
XMLProducer
- Set the
LexicalHandler
that will receive XML data.
- Specified by:
setLexicalHandler
in interface XMLProducer
processChildren
private void processChildren(org.w3c.dom.Node n)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
processNode
private void processNode(org.w3c.dom.Node n)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
setCDATASection
private void setCDATASection(org.w3c.dom.CDATASection n)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
setComment
private void setComment(org.w3c.dom.Comment n)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
setDocument
private void setDocument(org.w3c.dom.Document n)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
setDocumentType
private void setDocumentType(org.w3c.dom.DocumentType n)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
setElement
private void setElement(org.w3c.dom.Element n)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
setEntityReference
private void setEntityReference(org.w3c.dom.EntityReference n)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
setProcessingInstruction
private void setProcessingInstruction(org.w3c.dom.ProcessingInstruction n)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
setText
private void setText(org.w3c.dom.Text n)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
stream
public void stream(org.w3c.dom.Node node)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
Copyright © 2003 Bibop Research International. All Rights Reserved.