org.acm.seguin.ant
Class CVSUtil.CVSEntry

java.lang.Object
  extended by org.acm.seguin.ant.CVSUtil.CVSEntry
Enclosing class:
CVSUtil

public static class CVSUtil.CVSEntry
extends java.lang.Object

Description of Class

Author:
Ara Abrahamian

Constructor Summary
CVSUtil.CVSEntry()
           
 
Method Summary
 boolean equals(java.lang.Object src)
          Description of the Method
 boolean equalsTime(long time)
          Determines if this timestamp is considered equivalent to the time represented by the parameter we are passed.
 java.lang.String getFileName()
          Gets the fileName attribute of the CVSEntry object
 int hashCode()
          Description of the Method
static CVSUtil.CVSEntry parseEntryLine(java.io.File parent_dir, java.lang.String parseLine)
          Description of the Method
 java.util.Date parseTimestamp(java.lang.String source)
          Description of the Method
 void setTimestamp(java.lang.String timeStamp)
          Sets the timestamp attribute of the CVSEntry object
 java.lang.String toString()
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CVSUtil.CVSEntry

public CVSUtil.CVSEntry()
Method Detail

setTimestamp

public void setTimestamp(java.lang.String timeStamp)
Sets the timestamp attribute of the CVSEntry object

Parameters:
timeStamp - The new timestamp value
Since:
2.9.12

getFileName

public java.lang.String getFileName()
Gets the fileName attribute of the CVSEntry object

Returns:
The fileName value

equals

public boolean equals(java.lang.Object src)
Description of the Method

Overrides:
equals in class java.lang.Object
Parameters:
src - Description of the Parameter
Returns:
Description of the Return Value

equalsTime

public boolean equalsTime(long time)
Determines if this timestamp is considered equivalent to the time represented by the parameter we are passed. Note that we allow up to, but not including, one second of time difference, since Java allows millisecond time resolution while CVS stores second resolution timestamps. Further, we allow the resolution difference on either side of the second because we can not be sure of the rounding.

Parameters:
time - Description of the Parameter
Returns:
Description of the Return Value

hashCode

public int hashCode()
Description of the Method

Overrides:
hashCode in class java.lang.Object
Returns:
Description of the Return Value

parseTimestamp

public java.util.Date parseTimestamp(java.lang.String source)
                              throws java.text.ParseException
Description of the Method

Parameters:
source - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.text.ParseException - Description of the Exception

toString

public java.lang.String toString()
Description of the Method

Overrides:
toString in class java.lang.Object
Returns:
Description of the Return Value

parseEntryLine

public static CVSUtil.CVSEntry parseEntryLine(java.io.File parent_dir,
                                              java.lang.String parseLine)
                                       throws java.text.ParseException
Description of the Method

Parameters:
parent_dir - Description of the Parameter
parseLine - Description of the Parameter
Returns:
Description of the Return Value
Throws:
java.text.ParseException - Description of the Exception