FileAttributesInputStream instances returned by connectors which operate over a FileSystem.Supplier adding the logic to check that the file size is stable.FileSystemlock and throws FileLockedException if already lockedFileMatcher.build() before returning the built Predicate.IllegalPathException explaining that an operation is trying to write to the given path but it
already exists and no overwrite instruction was provided.Predicate from the criterias in this builder's state.IllegalPathException explaining that a
FileSystem#list(FileConnectorConfig, String, boolean, Message, Predicate) operation was attempted on a path
pointing to a file.IllegalPathException explaining that a
FileSystem#read(FileConnectorConfig, Message, String, boolean) operation was attempted on a path pointing to
a directoryPathLock.release() on the lock.sourcePath into the targetPath.FileSystem.copy(FileConnectorConfig, String, String, boolean, boolean, String)sourcePath into the targetPath.FileSystem.createDirectory(String)filePath, provided that it's not lockedFileSystem#delete(FileConnectorConfig, String)filePath, provided that it's not lockedmessagemessagesourcePath into the targetPath.directoryPathpath, provided that it's not lockeddirectoryPath which match the given matcher.sourcePath into the targetPath.directoryPath which match the given matcher.path to the name provided on the to parameterBaseFileSystemOperations.doWrite(FileConnectorConfig, FileSystem, String, InputStream, boolean, boolean, FileWriteMode)
must be used instead.
Writes the content into the file pointed by path.
If the directory on which the file is attempting to be written doesn't exist, then the operation will either throw
IllegalArgumentException or create such folder depending on the value of the createParentDirectory.
If the file itself already exists, then the behavior depends on the supplied mode.
This operation also supports locking support depending on the value of the lock argument, but following the same
rules and considerations as described in the read operation.
content into the file pointed by path.MuleRuntimeException for the given message and causeMuleRuntimeException for the given message and causepath existsModuleException to be thrown in the cases in which there is not enough permissions to access a particular file or
directory.messageModuleException to be thrown in the cases in which a given file already exists.messagemessagemessagemessageFileSystemBaseFileSystemOperations#copy(FileConnectorConfig, FileSystem, String, String, boolean, boolean, CoreEvent) or
BaseFileSystemOperations#move(FileConnectorConfig, FileSystem, String, String, boolean, boolean, CoreEvent) operation.BaseFileSystemOperations#delete(FileSystem, String, CoreEvent) operation.BaseFileSystemOperations#list(FileConnectorConfig, FileSystem, String, boolean, Message, FileMatcher)
operation.ModuleException for the cases in which a lock cannot be acquired over a file.messagePredicate which verifies that a FileAttributes instance is compliant with a number of criterias.BaseFileSystemOperations#doRead(FileConnectorConfig, FileSystem, String, MediaType, boolean) operation.MuleRuntimeException to be thrown when there is a problem while trying to read the content of a file lazily.messagemessageBaseFileSystemOperations#rename(FileSystem, String, String, boolean, CoreEvent)
or the BaseFileSystemOperations#createDirectory(FileSystem, String) operation.ConnectionProvider which provides instances of
FileSystemBaseFileSystemOperations.doWrite(FileConnectorConfig, FileSystem, String, InputStream, String, boolean, boolean, FileWriteMode)
operation.Path to which all non absolute paths are relative toInputStream of the file described by the attributes passed to the constructorDataType to be associated with a Message which payload is a InputStream and the
attributes an instance of FileAttributesDataType to be associated with a Message which payload is a InputStream and the
attributes an instance of FileAttributesModuleException to be thrown in the cases in which the received content to be written is invalid.messageModuleException to be thrown in the cases in which a given path is invalid.messagemessageSupplier so that the first invokation to the LazyStreamSupplier.get() method is actually forwarded to it, but
subsequent ones return the same cached value.directoryPath which match the given matcher.FileSystem.list(FileConnectorConfig, String, boolean, Predicate)directoryPath which match the given matcher.path.path.directoryPath also creating any missing parent directoriessourcePath into the targetPath.FileSystem.move(FileConnectorConfig, String, String, boolean, boolean, String)sourcePath into the targetPath.Predicate of FileAttributes instances which accepts any valuePathLock interfaceIllegalPathException explaining that a
FileSystem#list(FileConnectorConfig, String, boolean, Message, Predicate) operation was attempted on a path
pointing to a file.FileSystem.read(FileConnectorConfig, String, boolean)NullPathLock.tryLock() method has receivedPathLock.tryLock() on this instance with a true
return value.PathLock.tryLock() on this instance with a true
return value.filePath to the provided newNameFileSystem#rename(FileConnectorConfig, String, String, boolean)filePath to the provided newNameFileCommand.resolvePath(String) only that it throws a IllegalArgumentException if the
given path doesn't exist.Path to the given filePathBiFunction which returns true if a given LocalDateTime is posterior or equal to a reference
dateBiFunction which returns true if a given LocalDateTime is prior or equal to a reference datetruepath is not lockedpath is not lockedAbstractFileSystem.write(String, InputStream, FileWriteMode, boolean, boolean) must be used instead.
content into the file pointed by filePath.WriteCommand.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)FileSystem.write(String, InputStream, FileWriteMode, boolean, boolean)FileSystem.write(String, InputStream, FileWriteMode, boolean, boolean) must be used instead.
Writes the content into the file pointed by filePath.
The content can be of any of the given types:
null contents are not allowed and will result in an IllegalArgumentException.
If the directory on which the file is attempting to be written doesn't exist, then the operation will either throw
IllegalArgumentException or create such folder depending on the value of the createParentDirectory.
If the file itself already exists, then the behavior depends on the supplied mode.
This method also supports locking support depending on the value of the lock argument, but following the same rules
and considerations as described in the FileSystem.read(FileConnectorConfig, String, boolean) method
content into the file pointed by filePath.Copyright © 2003–2019 MuleSoft, Inc.. All rights reserved.