|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.mule.transformers.AbstractTransformer
org.mule.transformers.xml.AbstractXmlTransformer
AbstractXmlTransformer offers some XSLT transform on a DOM (or
other XML-ish) object.
| Nested Class Summary | |
protected static interface |
AbstractXmlTransformer.ResultHolder
Result callback interface used when processing XML through JAXP |
| Field Summary |
| Fields inherited from class org.mule.transformers.AbstractTransformer |
DEFAULT_TRUNCATE_LENGTH, endpoint, logger, name, nextTransformer, returnClass, sourceTypes |
| Constructor Summary | |
AbstractXmlTransformer()
|
|
| Method Summary | |
protected String |
convertToBytes(Object obj,
String outputEncoding)
Converts an XML in-memory representation to a String using a specific encoding. |
protected String |
convertToText(Object obj)
Deprecated. Replaced by convertToText(Object obj, String ouputEncoding) |
protected String |
convertToText(Object obj,
String outputEncoding)
Converts an XML in-memory representation to a String using a specific encoding. |
String |
getOutputEncoding()
|
protected static AbstractXmlTransformer.ResultHolder |
getResultHolder(Class desiredClass)
|
Source |
getXmlSource(Object src)
|
void |
setOutputEncoding(String outputEncoding)
|
| Methods inherited from class org.mule.transformers.AbstractTransformer |
checkReturnClass, clone, doTransform, generateTransformerName, getEndpoint, getFinalReturnClass, getName, getNextTransformer, getReturnClass, initialise, isAcceptNull, isIgnoreBadInput, isSourceTypeSupported, isSourceTypeSupported, nextTransform, registerSourceType, setEndpoint, setIgnoreBadInput, setName, setNextTransformer, setReturnClass, toString, transform, unregisterSourceType |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public AbstractXmlTransformer()
| Method Detail |
public Source getXmlSource(Object src)
protected static AbstractXmlTransformer.ResultHolder getResultHolder(Class desiredClass)
desiredClass - Java class representing the desired format
protected String convertToText(Object obj)
throws TransformerFactoryConfigurationError,
TransformerException
obj - Object to convert (could be byte[], String, DOM, DOM4J)
TransformerFactoryConfigurationError - On error
TransformerException - On error
protected String convertToText(Object obj,
String outputEncoding)
throws TransformerFactoryConfigurationError,
TransformerException
obj - Object to convert (could be byte[], String, DOM, or DOM4J Document).
If the object is a byte[], the character
encoding used MUST match the declared encoding standard, or a parse error will occur.outputEncoding - Name of the XML encoding to use, e.g. US-ASCII, or null for UTF-8
TransformerFactoryConfigurationError - On error
TransformerException - On error
protected String convertToBytes(Object obj,
String outputEncoding)
throws TransformerFactoryConfigurationError,
TransformerException
obj - Object to convert (could be byte[], String, DOM, or DOM4J Document).
If the object is a byte[], the character
encoding used MUST match the declared encoding standard, or a parse error will occur.outputEncoding - Name of the XML encoding to use, e.g. US-ASCII, or null for UTF-8
TransformerFactoryConfigurationError - On error
TransformerException - On errorpublic String getOutputEncoding()
public void setOutputEncoding(String outputEncoding)
outputEncoding - the outputEncoding to set
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||