FileEntry encapsulates a file or directory to be published to the
reporting infrastructure.
from(Path, String)
| Modifier and Type | Field and Description |
|---|---|
| private final @Nullable String | |
| private final Path | |
| private final LocalDateTime |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static FileEntry | |
| public Optional | Returns: the media type of the path to publish; nevernull but
potentially empty — for example, if the path represents a directoryGet the media type of the path to be published. |
| public Path | Returns: the path to publish; nevernullGet the path for the file or directory to be published. |
| public LocalDateTime | Returns: when this entry was created; nevernullGet the timestamp for when this |
| public String |
| mediaType | back to summary |
|---|---|
| private final @Nullable String mediaType | |
| path | back to summary |
|---|---|
| private final Path path | |
| timestamp | back to summary |
|---|---|
| private final LocalDateTime timestamp | |
| FileEntry | back to summary |
|---|---|
| private FileEntry(Path path, @Nullable String mediaType) | |
| from | back to summary |
|---|---|
| public static FileEntry from(Path path, @Nullable String mediaType) Factory for creating a new The | |
| getMediaType | back to summary |
|---|---|
| public Optional Get the media type of the path to be published. | |
| getPath | back to summary |
|---|---|
| public Path getPath() Get the path for the file or directory to be published.
| |
| getTimestamp | back to summary |
|---|---|
| public LocalDateTime getTimestamp() Get the timestamp for when this
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |