Class ImageFileAttributes
Object
ImageFileAttributes
Timestamps and other metadata associated with an image file-path, but not with the file's
contents.
- Author:
- Owen Feehan
-
Constructor Summary
ConstructorsConstructorDescriptionImageFileAttributes
(Path path, ZonedDateTime creationTime, ZonedDateTime modificationTime) Creates a newImageFileAttributes
instance. -
Method Summary
Modifier and TypeMethodDescriptionThe file extension of the file-path.static ImageFileAttributes
ReadsImageFileAttributes
from a path.The creation timestamp on the file the image was loaded from.The last modified timestamp on the file the image was loaded from.
-
Constructor Details
-
ImageFileAttributes
Creates a newImageFileAttributes
instance.- Parameters:
path
- The path on the file-system.creationTime
- The creation timestamp on the file the image was loaded from.modificationTime
- The last modified timestamp on the file the image was loaded from.
-
-
Method Details
-
fromPath
ReadsImageFileAttributes
from a path.- Parameters:
path
- the path.- Returns:
- newly created
ImageFileAttributes
. - Throws:
IOException
- if the timestamps cannot be read.
-
extension
The file extension of the file-path.- Returns:
- the extension, always in lower-case.
-
getCreationTime
The creation timestamp on the file the image was loaded from. -
getModificationTime
The last modified timestamp on the file the image was loaded from.
-