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 ?
|
output
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
ROLE
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, startPrefixMapping
setConsumer, setContentHandler, setLexicalHandler
enableLogging, getLogger, setupLogger, setupLogger, setupLogger
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity
setConsumer
protected 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 Contextualizable
ContextException
public void service(ServiceManager smanager) throws ServiceException
service
in interface Serviceable
ServiceException
public void configure(Configuration conf) throws ConfigurationException
configure
in interface Configurable
ConfigurationException
public void recycle()
recycle
in interface Recyclable
recycle
in class AbstractSerializer
public void dispose()
dispose
in interface Disposable
public String getMimeType()
getMimeType
in interface SitemapOutputComponent
getMimeType
in class AbstractSerializer
public void setOutputStream(OutputStream out) throws IOException
setOutputStream
in interface SitemapOutputComponent
setOutputStream
in class AbstractSerializer
IOException
public Serializable getKey()
getKey
in interface CacheableProcessingComponent
0
if the component is currently
not cacheable.public SourceValidity getValidity()
getValidity
in interface CacheableProcessingComponent
null
if the
component is currently not cacheable.public boolean shouldSetContentLength()
shouldSetContentLength
in interface SitemapOutputComponent
shouldSetContentLength
in class AbstractSerializer
public org.apache.xmlgraphics.io.Resource getResource(URI uri) throws IOException
getResource
in interface org.apache.xmlgraphics.io.ResourceResolver
IOException
public OutputStream getOutputStream(URI uri) throws IOException
getOutputStream
in interface org.apache.xmlgraphics.io.ResourceResolver
IOException