public interface WriteCommand
| Modifier and Type | Method and Description |
|---|---|
void |
write(String filePath,
InputStream content,
FileWriteMode mode,
boolean lock,
boolean createParentDirectory,
String encoding)
Writes a file under the considerations of
FileSystem.write(String, InputStream, FileWriteMode, boolean, boolean, String) |
void write(String filePath, InputStream content, FileWriteMode mode, boolean lock, boolean createParentDirectory, String encoding)
FileSystem.write(String, InputStream, FileWriteMode, boolean, boolean, String)filePath - the path of the file to be writtencontent - the content to be written into the filemode - a FileWriteModelock - 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–2017 MuleSoft, Inc.. All rights reserved.