|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
public class SVGBuilder
The SVGBuilder
is a utility class that will generate a
SVG-DOM Document from SAX events using Batik's SVGDocumentFactory.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.batik.dom.util.SAXDocumentFactory |
---|
org.apache.batik.dom.util.SAXDocumentFactory.PreInfo |
Field Summary | |
---|---|
protected Locator |
locator
|
protected Logger |
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 |
enableLogging(Logger logger)
Provide component with a logger. |
void |
endDocument()
Receive notification of the end of a document. |
Document |
getDocument()
Return the newly built Document. |
protected Logger |
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 |
---|
protected Logger log
protected Locator locator
Constructor Detail |
---|
protected SVGBuilder()
Method Detail |
---|
public void enableLogging(Logger logger)
enableLogging
in interface LogEnabled
logger
- the loggerprotected Logger getLogger()
public Document getDocument()
public void startDocument() throws SAXException
startDocument
in interface ContentHandler
startDocument
in class org.apache.batik.dom.svg.SAXSVGDocumentFactory
SAXException
- If this method was not called appropriately.public void setDocumentLocator(Locator locator)
setDocumentLocator
in interface ContentHandler
setDocumentLocator
in class org.apache.batik.dom.util.SAXDocumentFactory
public void endDocument() throws SAXException
endDocument
in interface ContentHandler
endDocument
in class DefaultHandler
SAXException
- If this method was not called appropriately.protected void notify(Document doc) throws SAXException
SAXException
public void recycle()
recycle
in interface Recyclable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |