public interface ReadCommand
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,FileAttributes> |
read(FileConnectorConfig config,
org.mule.runtime.api.message.Message message,
String filePath,
boolean lock)
Reads files under the considerations of
FileSystem.read(FileConnectorConfig, Message, String, boolean) |
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,FileAttributes> read(FileConnectorConfig config, org.mule.runtime.api.message.Message message, String filePath, boolean lock)
FileSystem.read(FileConnectorConfig, Message, String, boolean)config - the config that is parameterizing this operationmessage - the incoming MessagefilePath - the path of the file you want to readlock - whether or not to lock the fileResult with an InputStream with the file's content as payload and a
FileAttributes object as Message.getAttributes()IllegalArgumentException - if the file at the given path doesn't existsCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.