diff --git a/spring-integration-reference/src/file.xml b/spring-integration-reference/src/file.xml
index 43504bbb83..ebf39cad55 100644
--- a/spring-integration-reference/src/file.xml
+++ b/spring-integration-reference/src/file.xml
@@ -97,29 +97,101 @@
]]>
Within this namespace you can reduce the PollableFileSource and wrap
it in a InboundChannelAdapter like this:
-
- (1)
(2)
(3)
]]>
+ Where (1) is relying on the default filter that just prevents
+ duplication, (2) is using a custom filter and (3) is using the
+ filename-pattern
+ attribute to add a
+ Pattern
+ based filter to the
+ PollableFileSource
Writing files
-
+ To write messages to the file system you can use a
+ FileWritingMessageConsumer
+
+ . This class can deal with File or byte[] payloads and otherwise
+ invokes the toString() method on the payload to estabish the contents
+ of the File. In its simplest form the
+ FileWritingMessageConsumer
+
+ just needs a parent directory for the files.
-
+ Additionally, you can
+ configure the encoding and the charset that
+ will
+ be used in case of a
+ fallback on the toString() method.
-
+ To make things easier you can configure the
+ FileWritingMessageConsumer as part of an outbound channel adapter
+ using the namespace.
+
+ ]]>
+
+
+ If you have more elaborate requirements to the payload to file
+ conversion you could extend the FileWritingMessageConsumer, but a
+ much better option is to rely on a
+ Transformer
+
+
+
\ No newline at end of file