org.mule.module.xml.transformer
Class XmlToOutputHandler

java.lang.Object
  extended by org.mule.transformer.AbstractTransformer
      extended by org.mule.module.xml.transformer.AbstractXmlTransformer
          extended by org.mule.module.xml.transformer.XmlToOutputHandler
All Implemented Interfaces:
Initialisable, NamedObject, BaseTransformer, DiscoverableTransformer, Transformer

public class XmlToOutputHandler
extends AbstractXmlTransformer
implements DiscoverableTransformer


Nested Class Summary
 
Nested classes/interfaces inherited from class org.mule.module.xml.transformer.AbstractXmlTransformer
AbstractXmlTransformer.ResultHolder
 
Field Summary
 
Fields inherited from class org.mule.transformer.AbstractTransformer
DEFAULT_TRUNCATE_LENGTH, endpoint, logger, name, returnClass, sourceTypes
 
Fields inherited from interface org.mule.api.transformer.DiscoverableTransformer
DEFAULT_PRIORITY_WEIGHTING, MAX_PRIORITY_WEIGHTING, MIN_PRIORITY_WEIGHTING
 
Fields inherited from interface org.mule.api.lifecycle.Initialisable
PHASE_NAME
 
Constructor Summary
XmlToOutputHandler()
           
 
Method Summary
 Object doTransform(Object src, String encoding)
           
 int getPriorityWeighting()
           
 void setPriorityWeighting(int priorityWeighting)
           
protected  void writeXml(Object src, String encoding, OutputStream out)
           
 
Methods inherited from class org.mule.module.xml.transformer.AbstractXmlTransformer
convertToBytes, convertToText, convertToText, getOutputEncoding, getResultHolder, getXMLInputFactory, getXMLOutputFactory, isUseStaxSource, setOutputEncoding, setUseStaxSource, setXMLInputFactory, setXMLOutputFactory, writeToStream
 
Methods inherited from class org.mule.transformer.AbstractTransformer
checkReturnClass, generateTransformerName, getEndpoint, getName, getReturnClass, getSourceTypes, initialise, isAcceptNull, isConsumed, isIgnoreBadInput, isSourceTypeSupported, isSourceTypeSupported, registerSourceType, setEndpoint, setIgnoreBadInput, setName, setReturnClass, toString, transform, unregisterSourceType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XmlToOutputHandler

public XmlToOutputHandler()
Method Detail

doTransform

public Object doTransform(Object src,
                          String encoding)
                   throws TransformerException
Specified by:
doTransform in class AbstractTransformer
Throws:
TransformerException

writeXml

protected void writeXml(Object src,
                        String encoding,
                        OutputStream out)
                 throws TransformerFactoryConfigurationError,
                        IOException
Throws:
TransformerFactoryConfigurationError
IOException

getPriorityWeighting

public int getPriorityWeighting()
Specified by:
getPriorityWeighting in interface DiscoverableTransformer

setPriorityWeighting

public void setPriorityWeighting(int priorityWeighting)
Specified by:
setPriorityWeighting in interface DiscoverableTransformer


Copyright © 2003-2008 MuleSource, Inc.. All Rights Reserved.