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 newImageFileAttributesinstance. -
Method Summary
Modifier and TypeMethodDescriptionThe file extension of the file-path.static ImageFileAttributesReadsImageFileAttributesfrom 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 newImageFileAttributesinstance.- 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
ReadsImageFileAttributesfrom 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.
-