com.partnersoft.net.yonder
Class YonderFileInfo
java.lang.Object
com.partnersoft.net.yonder.YonderFileInfo
- All Implemented Interfaces:
- Immutable
public class YonderFileInfo
- extends java.lang.Object
- implements Immutable
|
Constructor Summary |
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. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
YonderFileInfo
public 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.
YonderFileInfo
public YonderFileInfo(Path path,
boolean directory,
boolean exists,
long length,
long lastModifiedMillis)
- This is a more verbose and standard constructor, just setting the state explicitly.
- Parameters:
directory - exists - length - lastModifiedMillis -
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
getPath
public Path getPath()
isDirectory
public boolean isDirectory()
exists
public boolean exists()
getLength
public long getLength()
getLastModifiedMillis
public long getLastModifiedMillis()