|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.mule.providers.streaming.AbstractStreamingTransformer
public abstract class 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 UMOBaseTransformer
public void setName(String string)
setName
in interface UMOBaseTransformer
string
- public final Object transform(InputStream src, OutputStream dest, String encoding) throws TransformerException
transform
in interface UMOStreamingTransformer
src
- 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 UMOBaseTransformer
public void setEndpoint(UMOImmutableEndpoint endpoint)
UMOBaseTransformer
setEndpoint
in interface UMOBaseTransformer
endpoint
- sets the endpoint associated with the transfromerprotected abstract Object doTransform(InputStream src, OutputStream dest, String encoding) throws TransformerException
TransformerException
public UMOStreamingTransformer getNextTransformer()
UMOStreamingTransformer
getNextTransformer
in interface UMOStreamingTransformer
public void setNextTransformer(UMOStreamingTransformer nextTransformer)
UMOStreamingTransformer
setNextTransformer
in interface UMOStreamingTransformer
nextTransformer
- the next transforer to invokepublic Object clone() throws CloneNotSupportedException
clone
in interface UMOBaseTransformer
clone
in class Object
CloneNotSupportedException
public void initialise() throws InitialisationException
initialise
in interface Initialisable
InitialisationException
RecoverableException
- if an error occurs that can be recovered fromprotected String generateTransformerName()
public boolean isIgnoreBadInput()
public void setIgnoreBadInput(boolean ignoreBadInput)
public String toString()
toString
in class Object
public boolean isAcceptNull()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |