Package messages
Class FileInfo
java.lang.Object
messages.FileInfo
- All Implemented Interfaces:
Serializable
A model describing the properties of the file.
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate StringThe file name.private LocalDateTimeThe time of the last change.private longFile size in bytes.private FileInfo.FileTypeFile type. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
filename
The file name. -
type
File type. -
size
private long sizeFile size in bytes. -
lastModified
The time of the last change.
-
-
Constructor Details
-
FileInfo
The constructor takes a file path object and, processing it, fills the model with properties.- Parameters:
path- The path to the file.
-