Java org.springframework.integration.file FileWritingMessageHandler fields, constructors, methods, implement or subclass

Example usage for Java org.springframework.integration.file FileWritingMessageHandler fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.springframework.integration.file FileWritingMessageHandler.

The text is from its open source code.

Constructor

FileWritingMessageHandler(File destinationDirectory)
Constructor which sets the #destinationDirectoryExpression using a LiteralExpression .
FileWritingMessageHandler(Expression destinationDirectoryExpression)
Constructor which sets the #destinationDirectoryExpression .

Method

voidafterPropertiesSet()
voidflushIfNeeded(FlushPredicate flushPredicate)
When using FileExistsMode#APPEND_NO_FLUSH you can invoke this method to selectively flush and close open files.
voidhandleMessage(Message messageArg)
voidsetAppendNewLine(boolean appendNewLine)
If 'true' will append a new-line after each write.
voidsetAutoCreateDirectory(boolean autoCreateDirectory)
Specify whether to create the destination directory automatically if it does not yet exist upon initialization.
voidsetBeanFactory(BeanFactory beanFactory)
voidsetCharset(String charset)
Set the charset name to use when writing a File from a String-based Message payload.
voidsetExpectReply(boolean expectReply)
Specify whether a reply Message is expected.
voidsetFileExistsMode(FileExistsMode fileExistsMode)
Will set the FileExistsMode that specifies what will happen in case the destination exists.
voidsetFileNameGenerator(FileNameGenerator fileNameGenerator)
Provide the FileNameGenerator strategy to use when generating the destination file's name.
voidsetFlushInterval(long flushInterval)
Set the frequency to flush buffers when FileExistsMode#APPEND_NO_FLUSH is being used.
voidsetFlushPredicate(MessageFlushPredicate flushPredicate)
Set a MessageFlushPredicate to use when flushing files when FileExistsMode#APPEND_NO_FLUSH is being used.
voidsetFlushWhenIdle(boolean flushWhenIdle)
Determine whether the #setFlushInterval(long) flushInterval applies only to idle files (default) or whether to flush on that interval after the first write to a previously flushed or new file.
voidsetOutputChannel(MessageChannel outputChannel)
voidsetTaskScheduler(TaskScheduler taskScheduler)
Configure a TaskScheduler for those components which logic relies on the scheduled tasks.
voidstart()
voidstop()
voidtrigger(Message message)
When using FileExistsMode#APPEND_NO_FLUSH , you can send a message to this method to flush any file(s) that needs it.