public class DeletedFileAttributes extends ListenerFileAttributes
ListenerFileAttributes which is always associated to a FileEventType.DELETE event.
Because the referenced file has been deleted, most of its attributes (such as size, type, timestamps, etc) are no longer
available. Thus, all but the below listed methods will throw IllegalStateException upon invocation:
AbstractFileAttributes.getPath()AbstractFileAttributes.getName()ListenerFileAttributes.getEventType()| Constructor and Description |
|---|
DeletedFileAttributes(Path path)
Creates a new instance
|
| Modifier and Type | Method and Description |
|---|---|
protected LocalDateTime |
asDateTime(Instant instant) |
LocalDateTime |
getCreationTime() |
LocalDateTime |
getLastAccessTime() |
LocalDateTime |
getLastModifiedTime() |
long |
getSize() |
boolean |
isDirectory() |
boolean |
isRegularFile() |
boolean |
isSymbolicLink() |
getEventTypegetName, getPathtoStringpublic DeletedFileAttributes(Path path)
path - the path of the deleted filepublic LocalDateTime getLastModifiedTime()
getLastModifiedTime in class LocalFileAttributesIllegalStateExceptionpublic LocalDateTime getLastAccessTime()
getLastAccessTime in class LocalFileAttributesIllegalStateExceptionpublic LocalDateTime getCreationTime()
getCreationTime in class LocalFileAttributesIllegalStateExceptionpublic long getSize()
LocalFileAttributesgetSize in interface org.mule.extension.file.common.api.FileAttributesgetSize in class LocalFileAttributesIllegalStateExceptionpublic boolean isRegularFile()
LocalFileAttributesisRegularFile in interface org.mule.extension.file.common.api.FileAttributesisRegularFile in class LocalFileAttributesIllegalStateExceptionpublic boolean isDirectory()
LocalFileAttributesisDirectory in interface org.mule.extension.file.common.api.FileAttributesisDirectory in class LocalFileAttributesIllegalStateExceptionpublic boolean isSymbolicLink()
LocalFileAttributesisSymbolicLink in interface org.mule.extension.file.common.api.FileAttributesisSymbolicLink in class LocalFileAttributesIllegalStateExceptionprotected LocalDateTime asDateTime(Instant instant)
asDateTime in class org.mule.extension.file.common.api.AbstractFileAttributesIllegalStateExceptionCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.