|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.transformer.AbstractTransformer
org.mule.transport.file.transformers.FileToByteArray
org.mule.transport.file.transformers.FileToString
public class FileToString
FileToString reads file contents into a string.
| Field Summary |
|---|
| Fields inherited from class org.mule.transformer.AbstractTransformer |
|---|
DEFAULT_TRUNCATE_LENGTH, endpoint, logger, name, nextTransformer, returnClass, sourceTypes |
| Fields inherited from interface org.mule.api.lifecycle.Initialisable |
|---|
PHASE_NAME |
| Constructor Summary | |
|---|---|
FileToString()
|
|
| Method Summary | |
|---|---|
Object |
doTransform(Object src,
String encoding)
Simple implementation which relies on FileToByteArray to get a
byte[] from the file beeing parsed and then transform it to a
String with the correct encoding. |
| 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 |
|---|
public FileToString()
| Method Detail |
|---|
public Object doTransform(Object src,
String encoding)
throws org.mule.api.transformer.TransformerException
FileToByteArray to get a
byte[] from the file beeing parsed and then transform it to a
String with the correct encoding. If the encoding isn't supported simply throw
an exception, good tranformation or no transformation at all. NOTE: if a
byte[] is passed in as a source object this transformer accepts
it and tries the usual transformation.
doTransform in class FileToByteArrayorg.mule.api.transformer.TransformerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||