com.caucho.jsp
Class Depend
java.lang.Object
|
+--com.caucho.jsp.Depend
- public class Depend
- extends java.lang.Object
Class for keeping track of modifications. Normally, a generated JSP
page will encode this using the second constructor.
Constructor Summary |
Depend(Path source,
long lastModified,
long length)
|
Method Summary |
boolean |
equals(java.lang.Object obj)
Returns true if the test Dependency has the same source path as
this dependency. |
long |
getLastModified()
Returns the current last-modified time of the file. |
long |
getLength()
Returns the current length time of the file. |
boolean |
isModified()
If the source modified date changes at all, treat it as a modification. |
java.lang.String |
toString()
Returns a printable version of the dependency. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Depend
public Depend(Path source,
long lastModified,
long length)
getLastModified
public long getLastModified()
- Returns the current last-modified time of the file.
getLength
public long getLength()
- Returns the current length time of the file.
isModified
public boolean isModified()
- 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.
equals
public boolean equals(java.lang.Object obj)
- Returns true if the test Dependency has the same source path as
this dependency.
- Overrides:
equals
in class java.lang.Object
toString
public java.lang.String toString()
- Returns a printable version of the dependency.
- Overrides:
toString
in class java.lang.Object