|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.avalon.framework.logger.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.xml.AbstractXMLPipe
org.apache.cocoon.serialization.AbstractSerializer
org.apache.cocoon.serialization.FOPSerializer
public class FOPSerializer
FOP 0.93 (and newer) based serializer.
| Nested Class Summary | |
|---|---|
static class |
FOPSerializer.ReleaseSourceInputStream
An InputStream which releases the Cocoon/Avalon source from which the InputStream has been retrieved when the stream is closed. |
| Field Summary | |
|---|---|
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. |
protected SourceResolver |
resolver
|
protected boolean |
setContentLength
Should we set the content length ? |
| Fields inherited from class org.apache.cocoon.serialization.AbstractSerializer |
|---|
output |
| Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
|---|
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer |
| Fields inherited from interface org.apache.cocoon.serialization.Serializer |
|---|
ROLE |
| Constructor Summary | |
|---|---|
FOPSerializer()
|
|
| Method Summary | |
|---|---|
void |
configure(Configuration conf)
Set the configurations for this serializer. |
void |
dispose()
|
Serializable |
getKey()
Generate the unique key. |
String |
getMimeType()
Return the MIME type. |
SourceValidity |
getValidity()
Generate the validity object. |
void |
recycle()
Recycle serializer by removing references |
Source |
resolve(String href,
String base)
|
void |
service(ServiceManager manager)
Set the component manager for this serializer. |
void |
setOutputStream(OutputStream out)
Create the FOP driver 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.AbstractXMLPipe |
|---|
characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping |
| Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
|---|
setConsumer, setContentHandler, setLexicalHandler |
| Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled |
|---|
enableLogging, getLogger, setupLogger, setupLogger, setupLogger |
| 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.cocoon.xml.XMLProducer |
|---|
setConsumer |
| Field Detail |
|---|
protected SourceResolver resolver
protected org.apache.fop.apps.FopFactory fopfactory
protected org.apache.fop.apps.Fop fop
protected String mimetype
mime-type.
protected boolean setContentLength
protected ServiceManager manager
| Constructor Detail |
|---|
public FOPSerializer()
| Method Detail |
|---|
public void service(ServiceManager manager)
throws ServiceException
service in interface ServiceableServiceException
public 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 AbstractSerializerAbstractProcessingPipeline.setMimeTypeForSerializer(org.apache.cocoon.environment.Environment),
AbstractProcessingPipeline.setMimeTypeForReader(org.apache.cocoon.environment.Environment)
public void setOutputStream(OutputStream out)
throws IOException
OutputStream where the XML should be serialized.
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 AbstractSerializer
public Source resolve(String href,
String base)
throws TransformerException
resolve in interface URIResolverTransformerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||