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 $Id: SVGBuilder.java,v 1.4.2.2 2002/09/21 17:31:41 vgritsenko Exp $
Author:
Davanum Srinivas

Field Summary
protected  org.apache.log.Logger log
           
 
Fields inherited from class org.apache.batik.dom.svg.SAXSVGDocumentFactory
dtdids, DTDIDS, HTTP_CHARSET
 
Fields inherited from class org.apache.batik.dom.util.SAXDocumentFactory
createDocumentDescriptor, currentNode, document, documentDescriptor, documentElementParsed, errorHandler, implementation, inCDATA, inDTD, isValidating, 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)
          Provide component with a 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, error, getDocumentDescriptor, isValidating, processingInstruction, setDocumentLocator, setErrorHandler, setValidating, startCDATA, startDTD, startElement, startEntity, warning
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, fatalError, ignorableWhitespace, notationDecl, skippedEntity, startPrefixMapping, unparsedEntityDecl
 
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, isValidating, setValidating
 

Field Detail

log

protected org.apache.log.Logger log
Constructor Detail

SVGBuilder

protected SVGBuilder()
Construct a new instance of this TreeGenerator.
Method Detail

setLogger

public void setLogger(org.apache.log.Logger logger)
Provide component with a logger.
Specified by:
setLogger in interface org.apache.avalon.framework.logger.Loggable
Parameters:
logger - the logger

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.svg.SAXSVGDocumentFactory
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-2002 Apache Software Foundation. All Rights Reserved.