| Constructor and Description |
|---|
YonderFileInfo(Path path,
boolean directory,
boolean exists,
long length,
long lastModifiedMillis)
This is a more verbose and standard constructor, just setting the state explicitly.
|
YonderFileInfo(Path path,
long lengthCode,
long lastModifiedMillis)
This constructor mimics the actual conversation code used by Yonder; if the length
is -1, the file does not exist; if it's -2 it's a directory, otherwise it's the file length.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists() |
long |
getLastModifiedMillis() |
long |
getLength() |
Path |
getPath() |
boolean |
isDirectory() |
java.lang.String |
toString() |
public YonderFileInfo(Path path, long lengthCode, long lastModifiedMillis)
public YonderFileInfo(Path path, boolean directory, boolean exists, long length, long lastModifiedMillis)
directory - exists - length - lastModifiedMillis - public java.lang.String toString()
toString in class java.lang.Objectpublic Path getPath()
public boolean isDirectory()
public boolean exists()
public long getLength()
public long getLastModifiedMillis()