public interface WriteCommand
| Modifier and Type | Field and Description |
|---|---|
static String |
IS_A_DIRECTORY_MESSAGE |
| Modifier and Type | Method and Description |
|---|---|
default void |
write(String filePath,
InputStream content,
FileWriteMode mode,
boolean lock,
boolean createParentDirectory)
Writes a file under the considerations of
FileSystem.write(String, InputStream, FileWriteMode, boolean, boolean) |
void |
write(String filePath,
InputStream content,
FileWriteMode mode,
boolean lock,
boolean createParentDirectory,
String encoding)
Deprecated.
@
write(String, InputStream, FileWriteMode, boolean, boolean) must be used instead.
Writes a file under the considerations of
FileSystem.write(String, InputStream, FileWriteMode, boolean, boolean, String) |
static final String IS_A_DIRECTORY_MESSAGE
@Deprecated void write(String filePath, InputStream content, FileWriteMode mode, boolean lock, boolean createParentDirectory, String encoding)
write(String, InputStream, FileWriteMode, boolean, boolean) must be used instead.
Writes a file under the considerations of
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 exist.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 supplieddefault void write(String filePath, InputStream content, FileWriteMode mode, boolean lock, boolean createParentDirectory)
FileSystem.write(String, InputStream, FileWriteMode, boolean, boolean)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 exist.IllegalArgumentException - if an illegal combination of arguments is suppliedCopyright © 2003–2019 MuleSoft, Inc.. All rights reserved.