public static class FS.Attributes
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private long |
creationTime |
private boolean |
exists |
private java.io.File |
file |
(package private) FS |
fs |
private boolean |
isDirectory |
private boolean |
isExecutable |
private boolean |
isRegularFile |
private boolean |
isSymbolicLink |
private java.time.Instant |
lastModifiedInstant |
protected long |
length
file length
|
Constructor and Description |
---|
Attributes(java.io.File path,
FS fs)
Constructor when there are issues with reading.
|
Attributes(FS fs,
java.io.File file,
boolean exists,
boolean isDirectory,
boolean isExecutable,
boolean isSymbolicLink,
boolean isRegularFile,
long creationTime,
java.time.Instant lastModifiedInstant,
long length) |
Modifier and Type | Method and Description |
---|---|
(package private) boolean |
exists() |
long |
getCreationTime() |
java.io.File |
getFile() |
java.time.Instant |
getLastModifiedInstant() |
long |
getLastModifiedTime()
Deprecated.
use getLastModifiedInstant instead
|
long |
getLength() |
java.lang.String |
getName() |
boolean |
isDirectory() |
boolean |
isExecutable() |
boolean |
isRegularFile() |
boolean |
isSymbolicLink() |
private final boolean isDirectory
private final boolean isSymbolicLink
private final boolean isRegularFile
private final long creationTime
private final java.time.Instant lastModifiedInstant
private final boolean isExecutable
private final java.io.File file
private final boolean exists
protected long length
final FS fs
Attributes(FS fs, java.io.File file, boolean exists, boolean isDirectory, boolean isExecutable, boolean isSymbolicLink, boolean isRegularFile, long creationTime, java.time.Instant lastModifiedInstant, long length)
public Attributes(java.io.File path, FS fs)
fs
- path
- public boolean isDirectory()
public boolean isExecutable()
public boolean isSymbolicLink()
public boolean isRegularFile()
public long getCreationTime()
@Deprecated public long getLastModifiedTime()
public java.time.Instant getLastModifiedInstant()
public long getLength()
public java.lang.String getName()
public java.io.File getFile()
boolean exists()