|
|||||||||||
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
Nested Class Summary |
Nested classes inherited from class org.apache.batik.dom.util.SAXDocumentFactory |
org.apache.batik.dom.util.SAXDocumentFactory.PreInfo |
Field Summary |
Fields inherited from class org.apache.cocoon.xml.dom.SVGBuilder |
locator, 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 |
Fields inherited from interface org.apache.cocoon.serialization.Serializer |
ROLE |
Constructor Summary | |
SVGSerializer()
|
Method Summary | |
void |
configure(Configuration conf)
Set the configurations for this serializer. |
void |
contextualize(Context context)
Get the context |
Serializable |
getKey()
Generate the unique key. |
String |
getMimeType()
Return the MIME type. |
SourceValidity |
getValidity()
Generate the validity object. |
void |
notify(Document doc)
Receive notification of a successfully completed DOM tree generation. |
void |
setOutputStream(OutputStream out)
Set the OutputStream where the XML should be serialized. |
boolean |
shouldSetContentLength()
Returns true so the pipeline implementation will buffer generated output and write content length to the response. |
Methods inherited from class org.apache.cocoon.xml.dom.SVGBuilder |
endDocument, getDocument, getLogger, recycle, setDocumentLocator, startDocument |
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, 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 |
createDocument, getDocumentDescriptor, isValidating, setValidating |
Constructor Detail |
public SVGSerializer()
Method Detail |
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void setOutputStream(OutputStream out)
OutputStream
where the XML should be serialized.
setOutputStream
in interface org.apache.cocoon.sitemap.SitemapOutputComponent
public void configure(Configuration conf) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public void notify(Document doc) throws SAXException
notify
in class SVGBuilder
SAXException
public String getMimeType()
getMimeType
in interface org.apache.cocoon.sitemap.SitemapOutputComponent
public Serializable getKey()
getKey
in interface org.apache.cocoon.caching.CacheableProcessingComponent
0
if the component
is currently not cacheable.public SourceValidity getValidity()
getValidity
in interface org.apache.cocoon.caching.CacheableProcessingComponent
null
if the
component is currently not cacheable.public boolean shouldSetContentLength()
Batik's PNGTranscoder closes the output stream, therefore we
cannot pass the output stream directly to Batik and have to
instruct pipeline to buffer it. If we do not buffer, we would get
an exception when
org.apache.cocoon.Cocoon#process(org.apache.cocoon.environment.Environment)
tries to close the stream.
shouldSetContentLength
in interface org.apache.cocoon.sitemap.SitemapOutputComponent
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |