public class ImageFileAttributes extends Object
Constructor and Description |
---|
ImageFileAttributes(Path path,
java.time.ZonedDateTime creationTime,
java.time.ZonedDateTime modificationTime) |
Modifier and Type | Method and Description |
---|---|
Optional<String> |
extension()
The file extension of the file-path.
|
static ImageFileAttributes |
fromPath(Path path)
Reads
ImageFileAttributes from a path. |
java.time.ZonedDateTime |
getCreationTime()
The creation timestamp on the file the image was loaded from.
|
java.time.ZonedDateTime |
getModificationTime()
The last modified timestamp on the file the image was loaded from.
|
public ImageFileAttributes(Path path, java.time.ZonedDateTime creationTime, java.time.ZonedDateTime modificationTime)
public static ImageFileAttributes fromPath(Path path) throws IOException
ImageFileAttributes
from a path.path
- the path.ImageFileAttributes
.IOException
- if the timestamps cannot be read.public Optional<String> extension()
public java.time.ZonedDateTime getCreationTime()
public java.time.ZonedDateTime getModificationTime()
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.