com.starbase.starteam
Interface FileDigest


public interface FileDigest

The FileDigest interface specifies the nescessary information to determine if a file on disk has changed from some checkpoint. There are three pieces of information that can be used to determine this: the file's lastModified time, the file size, and a checksum of the file's contents.


Method Summary
 MD5 getFileMD5()
          Gets the MD5 cryptographic hash of the file's content.
 long getFileSize()
          Gets the file's size.
 double getFileTime()
          Gets the file's last modified time.
 void setFileMD5(MD5 md5)
          Sets the MD5 cryptographic hash of the file's content.
 void setFileSize(long size)
          Sets the file's size.
 void setFileTime(double time)
          Sets the file's last modified time.
 

Method Detail

getFileTime

public double getFileTime()
Gets the file's last modified time. Follows Microsoft's COLEDateTime specification, which is the number of days from midnight, 30 December 1899, in UTC.

Returns:
The file's last modified time, as the number days from midnight, 30 December 1899, in UTC.

setFileTime

public void setFileTime(double time)
Sets the file's last modified time.

Parameters:
time - The file's last modified time, as the number days from midnight, 30 December 1899, in UTC.

getFileSize

public long getFileSize()
Gets the file's size. This is returned as a long (8 bytes) because an int (4 bytes) can only support file sizes up to roughly 2.1GB.

Returns:
The file's size, in bytes.

setFileSize

public void setFileSize(long size)
Sets the file's size.

Parameters:
size - The file's size, in bytes.

getFileMD5

public MD5 getFileMD5()
Gets the MD5 cryptographic hash of the file's content. See RFC1321.

Returns:
The MD5 cryptographic hash of the file's content.

setFileMD5

public void setFileMD5(MD5 md5)
Sets the MD5 cryptographic hash of the file's content.

Parameters:
md5 - The MD5 cryptographic hash of the file's content.


StarTeam SDK 10.4, Build 36
Copyright © 2003-2008 Borland Software Corporation. All rights reserved.