public class FOPNGSerializer extends AbstractSerializer implements Configurable, CacheableProcessingComponent, Serviceable, org.apache.xmlgraphics.io.ResourceResolver, Disposable, Contextualizable
| Modifier and Type | Class and Description |
|---|---|
static class |
FOPNGSerializer.ReleaseSourceInputStream
An InputStream which releases the Cocoon/Avalon source from which the
InputStream has been retrieved when the stream is closed.
|
| Modifier and Type | Field and Description |
|---|---|
private Context |
_context |
protected org.apache.fop.apps.Fop |
_fop
The FOP instance.
|
protected org.apache.fop.apps.FopFactory |
_fopfactory
Factory to create fop objects
|
protected ServiceManager |
_manager
Manager to get URLFactory from.
|
protected String |
_mimetype
The current
mime-type. |
private Map<String,String> |
_rendererOptions |
protected SourceResolver |
_resolver
The source resolver
|
protected boolean |
_setContentLength
Should we set the content length ?
|
outputcontentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumerROLE| Constructor and Description |
|---|
FOPNGSerializer() |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Configuration conf)
Set the configurations for this serializer.
|
void |
contextualize(Context context) |
void |
dispose() |
Serializable |
getKey()
Generate the unique key.
|
String |
getMimeType()
Return the MIME type.
|
OutputStream |
getOutputStream(URI uri) |
org.apache.xmlgraphics.io.Resource |
getResource(URI uri) |
SourceValidity |
getValidity()
Generate the validity object.
|
void |
recycle()
Recycle serializer by removing references
|
void |
service(ServiceManager smanager)
Set the component manager for this serializer.
|
void |
setOutputStream(OutputStream out) |
boolean |
shouldSetContentLength()
Test if the component wants to set the content length
|
characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMappingsetConsumer, setContentHandler, setLexicalHandlerenableLogging, getLogger, setupLogger, setupLogger, setupLoggerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharacters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMappingcomment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntitysetConsumerprotected SourceResolver _resolver
protected org.apache.fop.apps.FopFactory _fopfactory
protected org.apache.fop.apps.Fop _fop
protected boolean _setContentLength
protected ServiceManager _manager
private Map<String,String> _rendererOptions
public FOPNGSerializer()
public void contextualize(Context context) throws ContextException
contextualize in interface ContextualizableContextExceptionpublic void service(ServiceManager smanager) throws ServiceException
service in interface ServiceableServiceExceptionpublic void configure(Configuration conf) throws ConfigurationException
configure in interface ConfigurableConfigurationExceptionpublic void recycle()
recycle in interface Recyclablerecycle in class AbstractSerializerpublic void dispose()
dispose in interface Disposablepublic String getMimeType()
getMimeType in interface SitemapOutputComponentgetMimeType in class AbstractSerializerpublic void setOutputStream(OutputStream out) throws IOException
setOutputStream in interface SitemapOutputComponentsetOutputStream in class AbstractSerializerIOExceptionpublic Serializable getKey()
getKey in interface CacheableProcessingComponent0 if the component is currently
not cacheable.public SourceValidity getValidity()
getValidity in interface CacheableProcessingComponentnull if the
component is currently not cacheable.public boolean shouldSetContentLength()
shouldSetContentLength in interface SitemapOutputComponentshouldSetContentLength in class AbstractSerializerpublic org.apache.xmlgraphics.io.Resource getResource(URI uri) throws IOException
getResource in interface org.apache.xmlgraphics.io.ResourceResolverIOExceptionpublic OutputStream getOutputStream(URI uri) throws IOException
getOutputStream in interface org.apache.xmlgraphics.io.ResourceResolverIOException