org.apache.cocoon.xml.dom
Class SVGBuilder
java.lang.Object
|
+--org.xml.sax.helpers.DefaultHandler
|
+--org.apache.batik.dom.util.SAXDocumentFactory
|
+--org.apache.batik.dom.svg.SAXSVGDocumentFactory
|
+--org.apache.cocoon.xml.dom.SVGBuilder
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, org.apache.batik.dom.util.DocumentFactory, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, org.xml.sax.ext.LexicalHandler, org.apache.avalon.framework.logger.Loggable, org.apache.batik.dom.svg.SVGDocumentFactory, XMLConsumer
- Direct Known Subclasses:
- SVGSerializer
- public class SVGBuilder
- extends org.apache.batik.dom.svg.SAXSVGDocumentFactory
- implements XMLConsumer, org.apache.avalon.framework.logger.Loggable
The SVGBuilder
is a utility class that will generate a
SVG-DOM Document from SAX events using Batik's SVGDocumentFactory.
- Version:
- CVS $Revision: 1.2.2.3 $ $Date: 2001/10/11 08:56:18 $
- Author:
- Davanum Srinivas
Field Summary |
protected org.apache.log.Logger |
log
|
Fields inherited from class org.apache.batik.dom.svg.SAXSVGDocumentFactory |
DTDS, uris |
Fields inherited from class org.apache.batik.dom.util.SAXDocumentFactory |
createDocumentDescriptor, currentNode, document, documentDescriptor, documentElementParsed, implementation, inCDATA, inDTD, locator, namespaces, parserClassName |
Constructor Summary |
protected |
SVGBuilder()
Construct a new instance of this TreeGenerator. |
Method Summary |
void |
endDocument()
Receive notification of the beginning of a document. |
org.w3c.dom.Document |
getDocument()
Return the newly built Document. |
protected void |
notify(org.w3c.dom.Document doc)
Receive notification of a successfully completed DOM tree generation. |
void |
setLogger(org.apache.log.Logger logger)
|
void |
startDocument()
Receive notification of the beginning of a document. |
Methods inherited from class org.apache.batik.dom.svg.SAXSVGDocumentFactory |
createDocument, createDocument, createDocument, createDocument, createDocument, createDocument, resolveEntity |
Methods inherited from class org.apache.batik.dom.util.SAXDocumentFactory |
characters, comment, createDocument, endCDATA, endDTD, endElement, endEntity, getDocumentDescriptor, processingInstruction, setDocumentLocator, startCDATA, startDTD, startElement, startEntity |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xml.sax.ContentHandler |
characters, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startElement, startPrefixMapping |
Methods inherited from interface org.xml.sax.ext.LexicalHandler |
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity |
Methods inherited from interface org.apache.batik.dom.util.DocumentFactory |
getDocumentDescriptor |
log
protected org.apache.log.Logger log
SVGBuilder
protected SVGBuilder()
- Construct a new instance of this TreeGenerator.
setLogger
public void setLogger(org.apache.log.Logger logger)
- Specified by:
setLogger
in interface org.apache.avalon.framework.logger.Loggable
getDocument
public org.w3c.dom.Document getDocument()
- Return the newly built Document.
startDocument
public void startDocument()
throws org.xml.sax.SAXException
- Receive notification of the beginning of a document.
- Specified by:
startDocument
in interface org.xml.sax.ContentHandler
- Overrides:
startDocument
in class org.apache.batik.dom.util.SAXDocumentFactory
- Throws:
org.xml.sax.SAXException
- If this method was not called appropriately.
endDocument
public void endDocument()
throws org.xml.sax.SAXException
- Receive notification of the beginning of a document.
- Specified by:
endDocument
in interface org.xml.sax.ContentHandler
- Overrides:
endDocument
in class org.xml.sax.helpers.DefaultHandler
- Throws:
org.xml.sax.SAXException
- If this method was not called appropriately.
notify
protected void notify(org.w3c.dom.Document doc)
throws org.xml.sax.SAXException
- Receive notification of a successfully completed DOM tree generation.
Copyright © 1999-2001 Apache Software Foundation. All Rights Reserved.