public final class LocalWriteCommand extends org.mule.extension.file.common.api.command.FileCommand<LocalFileSystem> implements org.mule.extension.file.common.api.command.WriteCommand
LocalFileCommand which implements the WriteCommand contract| Constructor and Description |
|---|
LocalWriteCommand(LocalFileSystem fileSystem,
MuleContext muleContext) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doMkDirs(Path directoryPath)
|
protected boolean |
exists(Path path) |
protected Path |
getBasePath(org.mule.extension.file.common.api.FileSystem fileSystem) |
void |
write(String filePath,
InputStream content,
org.mule.extension.file.common.api.FileWriteMode mode,
boolean lock,
boolean createParentDirectory,
String encoding) |
public LocalWriteCommand(LocalFileSystem fileSystem, MuleContext muleContext)
public void write(String filePath, InputStream content, org.mule.extension.file.common.api.FileWriteMode mode, boolean lock, boolean createParentDirectory, String encoding)
write in interface org.mule.extension.file.common.api.command.WriteCommandprotected Path getBasePath(org.mule.extension.file.common.api.FileSystem fileSystem)
getBasePath in class org.mule.extension.file.common.api.command.FileCommand<LocalFileSystem>protected boolean exists(Path path)
exists in class org.mule.extension.file.common.api.command.FileCommand<LocalFileSystem>protected void doMkDirs(Path directoryPath)
doMkDirs in class org.mule.extension.file.common.api.command.FileCommand<LocalFileSystem>directoryPath - a Path pointing to the directory you want to createCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.