org.apache.cocoon.optional.servlet.components.sax.serializers
Class EncodingXMLSerializer

java.lang.Object
  extended by org.apache.cocoon.components.serializers.util.EncodingSerializer
      extended by org.apache.cocoon.components.serializers.util.XMLSerializer
          extended by org.apache.cocoon.optional.servlet.components.sax.serializers.EncodingXMLSerializer
All Implemented Interfaces:
CachingPipelineComponent, Consumer, Finisher, PipelineComponent, SAXConsumer, SAXPipelineComponent, org.xml.sax.ContentHandler, org.xml.sax.ext.LexicalHandler, org.xml.sax.Locator

public class EncodingXMLSerializer
extends org.apache.cocoon.components.serializers.util.XMLSerializer
implements SAXPipelineComponent, Finisher, SAXConsumer, CachingPipelineComponent

A fancy XML serializer not relying on the JAXP API.

Version:
$Id: EncodingXMLSerializer.java 825425 2009-10-15 07:51:28Z reinhard $

Field Summary
 
Fields inherited from class org.apache.cocoon.components.serializers.util.XMLSerializer
doctype
 
Fields inherited from class org.apache.cocoon.components.serializers.util.EncodingSerializer
ATTRIBUTE_LENGTH, ATTRIBUTE_LOCAL, ATTRIBUTE_NSURI, ATTRIBUTE_QNAME, ATTRIBUTE_VALUE, charset, CONTENT_LIST_ATTRIBUTE, indentPerLevel, NAMESPACE, namespaces, request
 
Constructor Summary
EncodingXMLSerializer()
           
 
Method Summary
 CacheKey constructCacheKey()
           
 void finish()
           
 java.lang.String getContentType()
           
 void setConfiguration(java.util.Map<java.lang.String,? extends java.lang.Object> configuration)
           
 void setOutputStream(java.io.OutputStream outputStream)
           
 void setup(java.util.Map<java.lang.String,java.lang.Object> parameters)
           
 java.lang.String toString()
           
 
Methods inherited from class org.apache.cocoon.components.serializers.util.XMLSerializer
body, charactersImpl, closeElement, comment, endCDATA, endDocument, endDTD, endElementImpl, endEntity, getMimeType, head, ignorableWhitespace, processingInstruction, recycle, skippedEntity, startCDATA, startDocument, startDTD, startElementImpl, startEntity
 
Methods inherited from class org.apache.cocoon.components.serializers.util.EncodingSerializer
characters, encode, encode, encode, endElement, endPrefixMapping, flush, getColumnNumber, getLineNumber, getLocation, getPublicId, getSystemId, include, setDocumentLocator, setEncoding, setIndentPerLevel, setup, startElement, startPrefixMapping, write, write, write, write, write, writeIndent, writeln, writeln
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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
 

Constructor Detail

EncodingXMLSerializer

public EncodingXMLSerializer()
Method Detail

constructCacheKey

public CacheKey constructCacheKey()
Specified by:
constructCacheKey in interface CachingPipelineComponent

finish

public void finish()
Specified by:
finish in interface PipelineComponent

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface Finisher

setConfiguration

public void setConfiguration(java.util.Map<java.lang.String,? extends java.lang.Object> configuration)
Specified by:
setConfiguration in interface PipelineComponent

setOutputStream

public void setOutputStream(java.io.OutputStream outputStream)
Specified by:
setOutputStream in interface Finisher
Overrides:
setOutputStream in class org.apache.cocoon.components.serializers.util.EncodingSerializer

setup

public void setup(java.util.Map<java.lang.String,java.lang.Object> parameters)
Specified by:
setup in interface PipelineComponent

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.