public interface WriteCommand
| Modifier and Type | Method and Description |
|---|---|
void |
write(String filePath,
Object content,
FileWriteMode mode,
org.mule.runtime.api.message.MuleEvent event,
boolean lock,
boolean createParentDirectory,
String encoding)
Writes a file under the considerations of
FileSystem#write(FileConnectorConfig, String, Object, FileWriteMode, MuleEvent, boolean, boolean, String) |
void write(String filePath, Object content, FileWriteMode mode, org.mule.runtime.api.message.MuleEvent event, boolean lock, boolean createParentDirectory, String encoding)
FileSystem#write(FileConnectorConfig, String, Object, FileWriteMode, MuleEvent, boolean, boolean, String)filePath - the path of the file to be writtencontent - the content to be written into the filemode - a FileWriteModeevent - the MuleEvent which processing triggers this operationlock - whether or not to lock the filecreateParentDirectory - whether or not to attempt creating the parent directory if it doesn't exists.encoding - when is a String, this attribute specifies the encoding to be used when writing. If
not set, then it defaults to FileConnectorConfig.getDefaultWriteEncoding()IllegalArgumentException - if an illegal combination of arguments is suppliedCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.