- All Implemented Interfaces:
FileInfo
Represents a FileInfo DTO (Data Transfer Object).
-
Nested Class Summary
Nested Classes
-
Method Summary
Create a new FileInfoDTO builder.
boolean
long
long
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
name
- Specified by:
name
in interface FileInfo
- Returns:
- The filename or directory name of file object.
-
isDir
public boolean isDir()
- Specified by:
isDir
in interface FileInfo
- Returns:
- Whether this is a directory (true).
-
size
public long size()
- Specified by:
size
in interface FileInfo
- Returns:
- The file size in bytes (0 if directory).
-
lastModified
public long lastModified()
- Specified by:
lastModified
in interface FileInfo
- Returns:
- The last modification time as an Instant.
-
path
- Specified by:
path
in interface FileInfo
- Returns:
- The full path of the file or directory within the fileset.
-
builder
Create a new FileInfoDTO builder.
- Returns:
- A new FileInfoDTO builder.