davsclaus commented on code in PR #30324:
URL: https://github.com/apache/camel/pull/30324#discussion_r4611389546
##########
components/camel-file/src/main/java/org/apache/camel/component/file/GenericFileHelper.java:
##########
@@ -239,6 +240,29 @@ public static boolean isWithinDirectory(String
compactTarget, String compactDir,
* @throws InvalidPayloadException if the body cannot be converted
* @throws IOException if the charset is not supported
*/
+ /**
+ * The body as a stream to write to a file of the given name. A Map, a
List or an object (a body unmarshalled from
+ * JSON, XML or CSV, or built in the route) cannot become one, and the
converter's message only names the
+ * conversion: says what the body is, the step that set it, and the
marshal that writes it, in the data format the
+ * file name names (CAMEL-25751, CAMEL-25749). The file, ftp and sftp
producers read the body with it (CAMEL-27151).
+ */
+ public static InputStream mandatoryBodyStream(Exchange exchange, Message
message, String fileName)
+ throws InvalidPayloadException {
Review Comment:
Right, thanks: fixed in 51dced7fc8, `mandatoryBodyStream` now sits above the
Javadoc of `toInputStream`.
_Claude Code on behalf of davsclaus_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]