public interface ReadCommand
| Modifier and Type | Method and Description |
|---|---|
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,FileAttributes> |
read(FileConnectorConfig config,
String filePath,
org.mule.runtime.api.metadata.MediaType mediaType,
boolean lock)
Reads files under the considerations of
FileSystem.read(FileConnectorConfig, String, MediaType, boolean) |
org.mule.runtime.extension.api.runtime.operation.Result<InputStream,FileAttributes> read(FileConnectorConfig config, String filePath, org.mule.runtime.api.metadata.MediaType mediaType, boolean lock)
FileSystem.read(FileConnectorConfig, String, MediaType, boolean)config - the config that is parameterizing this operationfilePath - 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–2017 MuleSoft, Inc.. All rights reserved.