Added PayloadSerializingTransformer and PayloadDeserializingTransformer (INT-513).

This commit is contained in:
Mark Fisher
2008-12-12 20:26:30 +00:00
parent 7c6ac19325
commit b1881f7b95
5 changed files with 274 additions and 1 deletions

View File

@@ -31,7 +31,14 @@ import org.springframework.util.FileCopyUtils;
* A {@link MessageHandler} implementation that writes the Message payload to a
* file. If the payload is a File object, it will copy the File to this
* consumer's directory. If the payload is a byte array or String, it will
* write it directly. Otherwise, it will invoke toString on the payload Object.
* write it directly. Otherwise, the payload type is unsupported, and an
* Exception will be thrown.
* <p>
* Other transformers may be useful to precede this handler. For example,
* any Serializable object payload can be converted into a byte array by the
* {@link org.springframework.integration.transformer.PayloadSerializingTransformer}.
* Likewise, any Object can be converted to a String based on its <code>toString()</code>
* method by the {@link org.springframework.integration.transformer.ObjectToStringTransformer}.
*
* @author Mark Fisher
*/