org.apache.cocoon.xml.dom
Class SVGBuilder

java.lang.Object
  extended byorg.xml.sax.helpers.DefaultHandler
      extended byorg.apache.batik.dom.util.SAXDocumentFactory
          extended byorg.apache.batik.dom.svg.SAXSVGDocumentFactory
              extended byorg.apache.cocoon.xml.dom.SVGBuilder
All Implemented Interfaces:
ContentHandler, org.apache.batik.dom.util.DocumentFactory, DTDHandler, EntityResolver, ErrorHandler, LexicalHandler, Poolable, Recyclable, org.apache.batik.dom.svg.SVGDocumentFactory, org.apache.cocoon.xml.XMLConsumer, XMLConsumer
Direct Known Subclasses:
SVGSerializer

public class SVGBuilder
extends org.apache.batik.dom.svg.SAXSVGDocumentFactory
implements org.apache.cocoon.xml.XMLConsumer, Recyclable

The SVGBuilder is a utility class that will generate a SVG-DOM Document from SAX events using Batik's SVGDocumentFactory.

Version:
$Id: SVGBuilder.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Nested Class Summary
 
Nested classes inherited from class org.apache.batik.dom.util.SAXDocumentFactory
org.apache.batik.dom.util.SAXDocumentFactory.PreInfo
 
Field Summary
protected  Locator locator
           
protected  Log log
           
 
Fields inherited from class org.apache.batik.dom.svg.SAXSVGDocumentFactory
dtdids, DTDIDS, dtdProps, HTTP_CHARSET, KEY_PUBLIC_IDS, KEY_SKIP_DTD, KEY_SKIPPABLE_PUBLIC_IDS, KEY_SYSTEM_ID, LOCK, skip_dtd, skippable_dtdids
 
Fields inherited from class org.apache.batik.dom.util.SAXDocumentFactory
createDocumentDescriptor, currentNode, document, documentDescriptor, errorHandler, implementation, inCDATA, inDTD, isValidating, namespaces, parserClassName, preInfo, stringBuffer, stringContent
 
Constructor Summary
protected SVGBuilder()
          Construct a new instance of this TreeGenerator.
 
Method Summary
 void endDocument()
          Receive notification of the end of a document.
 Document getDocument()
          Return the newly built Document.
protected  Log getLogger()
           
protected  void notify(Document doc)
          Receive notification of a successfully completed DOM tree generation.
 void recycle()
           
 void setDocumentLocator(Locator locator)
           
 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, createSVGDocument, createSVGDocument, createSVGDocument, getDOMImplementation, resolveEntity
 
Methods inherited from class org.apache.batik.dom.util.SAXDocumentFactory
appendStringData, characters, comment, createDocument, createDocument, createDocument, endCDATA, endDTD, endElement, endEntity, error, fatalError, getDocumentDescriptor, ignorableWhitespace, isValidating, processingInstruction, setErrorHandler, setValidating, startCDATA, startDTD, startElement, startEntity, warning
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, 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, 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
createDocument, getDocumentDescriptor, isValidating, setValidating
 

Field Detail

log

protected final Log log

locator

protected Locator locator
Constructor Detail

SVGBuilder

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

Method Detail

getLogger

protected Log getLogger()

getDocument

public Document getDocument()
Return the newly built Document.


startDocument

public void startDocument()
                   throws SAXException
Receive notification of the beginning of a document.

Specified by:
startDocument in interface ContentHandler
Throws:
SAXException - If this method was not called appropriately.

setDocumentLocator

public void setDocumentLocator(Locator locator)
Specified by:
setDocumentLocator in interface ContentHandler

endDocument

public void endDocument()
                 throws SAXException
Receive notification of the end of a document.

Specified by:
endDocument in interface ContentHandler
Throws:
SAXException - If this method was not called appropriately.

notify

protected void notify(Document doc)
               throws SAXException
Receive notification of a successfully completed DOM tree generation.

Throws:
SAXException

recycle

public void recycle()
Specified by:
recycle in interface Recyclable


Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.