|
|||||||||||
| 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.AbstractTextSerializer
| Nested Class Summary | |
static class |
AbstractTextSerializer.NamespaceAsAttributes
A pipe that ensures that all namespace prefixes are also present as 'xmlns:' attributes. |
| Field Summary | |
protected Properties |
format
The Properties used by this serializer. |
| 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 | |
AbstractTextSerializer()
|
|
| Method Summary | |
void |
configure(Configuration conf)
Set the configurations for this serializer. |
void |
configure(Core core)
|
void |
endDocument()
Receive notification of the end of a document. |
Serializable |
getKey()
Generate the unique key. |
protected SAXTransformerFactory |
getTransformerFactory()
Helper for TransformerFactory. |
protected TransformerHandler |
getTransformerHandler()
Helper for TransformerHandler. |
SourceValidity |
getValidity()
Generate the validity object. |
protected boolean |
needsNamespacesAsAttributes()
Checks if the used Trax implementation correctly handles namespaces set using startPrefixMapping(), but wants them also as 'xmlns:' attributes.
|
void |
recycle()
Recycle serializer by removing references |
void |
setConsumer(XMLConsumer consumer)
Interpose namespace pipe if needed. |
void |
setContentHandler(ContentHandler handler)
Interpose namespace pipe if needed. |
void |
setLexicalHandler(LexicalHandler handler)
Interpose namespace pipe if needed. |
void |
setOutputStream(OutputStream out)
Set the OutputStream where the requested resource should
be serialized. |
| Methods inherited from class org.apache.cocoon.serialization.AbstractSerializer |
getMimeType, shouldSetContentLength |
| Methods inherited from class org.apache.cocoon.xml.AbstractXMLPipe |
characters, comment, endCDATA, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping |
| 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, 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 |
| Field Detail |
protected final Properties format
Properties used by this serializer.
| Constructor Detail |
public AbstractTextSerializer()
| Method Detail |
public void setConsumer(XMLConsumer consumer)
setConsumer in interface XMLProducersetConsumer in class AbstractXMLProducerpublic void setContentHandler(ContentHandler handler)
setContentHandler in class AbstractXMLProducerpublic void setLexicalHandler(LexicalHandler handler)
setLexicalHandler in class AbstractXMLProducerprotected SAXTransformerFactory getTransformerFactory()
protected TransformerHandler getTransformerHandler()
throws TransformerException
TransformerException
public void setOutputStream(OutputStream out)
throws IOException
OutputStream where the requested resource should
be serialized.
setOutputStream in interface SitemapOutputComponentsetOutputStream in class AbstractSerializerIOExceptionpublic void configure(Core core)
public void configure(Configuration conf)
throws ConfigurationException
configure in interface ConfigurableConfigurationExceptionpublic void recycle()
AbstractSerializer
recycle in interface Recyclablerecycle in class AbstractSerializerRecyclable.recycle()public 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.
protected boolean needsNamespacesAsAttributes()
throws Exception
startPrefixMapping(), but wants them also as 'xmlns:' attributes.
The check consists in sending SAX events representing a minimal namespaced document
with namespaces defined only with calls to startPrefixMapping (no
xmlns:xxx attributes) and check if they are present in the resulting text.
Exception
public void endDocument()
throws SAXException
AbstractXMLPipe
endDocument in interface ContentHandlerendDocument in class AbstractXMLPipeSAXException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||