| java.lang.Object com.caucho.vfs.PathExistsDependency
PathExistsDependency | public class PathExistsDependency implements Dependency(Code) | | Class for keeping track of modifications.
|
Constructor Summary | |
public | PathExistsDependency(Path source) Create a new dependency. | public | PathExistsDependency(Path source, boolean exists) Create a new dependency with an already known modified time and length. |
Method Summary | |
public boolean | equals(Object obj) Returns true if the test Dependency has the same source path as
this dependency. | public Path | getPath() Returns the underlying source path. | public boolean | isModified() If the source modified date changes at all, treat it as a modification. | public boolean | logModified(Logger log) Log the reason for the modification. | public String | toString() Returns a printable version of the dependency. |
PathExistsDependency | public PathExistsDependency(Path source)(Code) | | Create a new dependency.
Parameters: source - the source file |
PathExistsDependency | public PathExistsDependency(Path source, boolean exists)(Code) | | Create a new dependency with an already known modified time and length.
Parameters: source - the source file |
equals | public boolean equals(Object obj)(Code) | | Returns true if the test Dependency has the same source path as
this dependency.
|
getPath | public Path getPath()(Code) | | Returns the underlying source path.
|
isModified | public boolean isModified()(Code) | | If the source modified date changes at all, treat it as a modification.
This protects against the case where multiple computers have
misaligned dates and a '<' comparison may fail.
|
logModified | public boolean logModified(Logger log)(Code) | | Log the reason for the modification.
|
toString | public String toString()(Code) | | Returns a printable version of the dependency.
|
|
|