|
|||||||||
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 | +--org.apache.cocoon.serialization.SVGSerializer
A Batik based Serializer for generating PNG/JPEG images
Field Summary |
Fields inherited from class org.apache.cocoon.xml.dom.SVGBuilder |
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 |
Fields inherited from interface org.apache.cocoon.serialization.Serializer |
ROLE |
Constructor Summary | |
SVGSerializer()
|
Method Summary | |
void |
compose(org.apache.avalon.framework.component.ComponentManager manager)
Set the current ComponentManager instance used by this
Composable . |
void |
configure(org.apache.avalon.framework.configuration.Configuration conf)
Set the configurations for this serializer. |
void |
contextualize(org.apache.avalon.framework.context.Context context)
Get the context |
long |
generateKey()
Generate the unique key. |
CacheValidity |
generateValidity()
Generate the validity object. |
java.lang.String |
getMimeType()
Return the MIME type. |
void |
notify(org.w3c.dom.Document doc)
Receive notification of a successfully completed DOM tree generation. |
void |
setConsumer(XMLConsumer consumer)
Set the XMLConsumer that will receive XML data.
|
void |
setContentHandler(org.xml.sax.ContentHandler content)
Set the ContentHandler that will receive XML data.
|
void |
setLexicalHandler(org.xml.sax.ext.LexicalHandler lexical)
Set the LexicalHandler that will receive XML data.
|
void |
setOutputStream(java.io.OutputStream out)
Set the OutputStream where the XML should be serialized. |
boolean |
shouldSetContentLength()
Test if the component wants to set the content length |
Methods inherited from class org.apache.cocoon.xml.dom.SVGBuilder |
endDocument, getDocument, setLogger, startDocument |
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, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, 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 |
Constructor Detail |
public SVGSerializer()
Method Detail |
public void contextualize(org.apache.avalon.framework.context.Context context) throws org.apache.avalon.framework.context.ContextException
contextualize
in interface org.apache.avalon.framework.context.Contextualizable
org.apache.avalon.framework.context.ContextException
public void setOutputStream(java.io.OutputStream out)
OutputStream
where the XML should be serialized.
setOutputStream
in interface SitemapOutputComponent
public void configure(org.apache.avalon.framework.configuration.Configuration conf) throws org.apache.avalon.framework.configuration.ConfigurationException
configure
in interface org.apache.avalon.framework.configuration.Configurable
org.apache.avalon.framework.configuration.ConfigurationException
public void compose(org.apache.avalon.framework.component.ComponentManager manager)
ComponentManager
instance used by this
Composable
.
compose
in interface org.apache.avalon.framework.component.Composable
public void setConsumer(XMLConsumer consumer)
XMLConsumer
that will receive XML data.
setContentHandler(consumer)
and setLexicalHandler(consumer)
.
public void setContentHandler(org.xml.sax.ContentHandler content)
ContentHandler
that will receive XML data.
ContentHandler
instance
accessing the protected super.contentHandler
field.
public void setLexicalHandler(org.xml.sax.ext.LexicalHandler lexical)
LexicalHandler
that will receive XML data.
LexicalHandler
instance
accessing the protected super.lexicalHandler
field.
java.lang.IllegalStateException
- If the LexicalHandler
or
the XMLConsumer
were
already set.public void notify(org.w3c.dom.Document doc) throws org.xml.sax.SAXException
notify
in class SVGBuilder
org.xml.sax.SAXException
public java.lang.String getMimeType()
getMimeType
in interface SitemapOutputComponent
public long generateKey()
generateKey
in interface Cacheable
0
if the component
is currently not cacheable.public CacheValidity generateValidity()
generateValidity
in interface Cacheable
null
if the
component is currently not cacheable.public boolean shouldSetContentLength()
shouldSetContentLength
in interface SitemapOutputComponent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |