|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.mule.providers.streaming.AbstractStreamingTransformer
TODO
| Field Summary | |
protected UMOImmutableEndpoint |
endpoint
The endpoint that this transformer instance is configured on |
protected Log |
logger
logger used by this class |
protected String |
name
The name that identifies this transformer. |
protected UMOStreamingTransformer |
nextTransformer
This is the following transformer in the chain of transformers. |
| Constructor Summary | |
AbstractStreamingTransformer()
default constructor required for discovery |
|
| Method Summary | |
Object |
clone()
|
protected abstract Object |
doTransform(InputStream src,
OutputStream dest,
String encoding)
|
protected String |
generateTransformerName()
|
UMOImmutableEndpoint |
getEndpoint()
The endpoint that this transformer is attached to |
String |
getName()
|
UMOStreamingTransformer |
getNextTransformer()
Transformers can be chained together and invoked in a series |
void |
initialise()
Template method were deriving classes can do any initialisation after the properties have been set on this transformer |
boolean |
isAcceptNull()
|
boolean |
isIgnoreBadInput()
|
void |
setEndpoint(UMOImmutableEndpoint endpoint)
Sets the endpoint associated with with this connector |
void |
setIgnoreBadInput(boolean ignoreBadInput)
|
void |
setName(String string)
|
void |
setNextTransformer(UMOStreamingTransformer nextTransformer)
Transformers can be chained together and invoked in a series |
String |
toString()
|
Object |
transform(InputStream src,
OutputStream dest,
String encoding)
Transforms the object. |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected final Log logger
protected String name
protected UMOImmutableEndpoint endpoint
protected UMOStreamingTransformer nextTransformer
| Constructor Detail |
public AbstractStreamingTransformer()
| Method Detail |
public String getName()
getName in interface UMOBaseTransformerpublic void setName(String string)
setName in interface UMOBaseTransformerstring -
public final Object transform(InputStream src,
OutputStream dest,
String encoding)
throws TransformerException
transform in interface UMOStreamingTransformersrc - The source object to transform.encoding - the encoding to use in this transformation (if necessary)
TransformerException - if a error occurs transforming the data or if the
expected returnClass isn't the same as the transformed datapublic UMOImmutableEndpoint getEndpoint()
UMOBaseTransformer
getEndpoint in interface UMOBaseTransformerpublic void setEndpoint(UMOImmutableEndpoint endpoint)
UMOBaseTransformer
setEndpoint in interface UMOBaseTransformerendpoint - sets the endpoint associated with the transfromer
protected abstract Object doTransform(InputStream src,
OutputStream dest,
String encoding)
throws TransformerException
TransformerExceptionpublic UMOStreamingTransformer getNextTransformer()
UMOStreamingTransformer
getNextTransformer in interface UMOStreamingTransformerpublic void setNextTransformer(UMOStreamingTransformer nextTransformer)
UMOStreamingTransformer
setNextTransformer in interface UMOStreamingTransformernextTransformer - the next transforer to invoke
public Object clone()
throws CloneNotSupportedException
clone in interface UMOBaseTransformerCloneNotSupportedException
public void initialise()
throws InitialisationException
initialise in interface InitialisableInitialisationExceptionprotected String generateTransformerName()
public boolean isIgnoreBadInput()
public void setIgnoreBadInput(boolean ignoreBadInput)
public String toString()
public boolean isAcceptNull()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||