com.starteam
Interface File.Digest

All Known Implementing Classes:
File.SyncRecord, File.WebCacheWorkSpaceSync
Enclosing class:
File

public static interface File.Digest

The Digest interface specifies the necessary 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. NOTE: This interface is not intended to be implemented by client applications.


Method Summary
 MD5 getFileMD5()
          Gets the MD5 cryptographic hash of the file's content.
 long getFileSize()
          Gets the file's size.
 DateTime 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(DateTime time)
          Sets the file's last modified time.
 

Method Detail

getFileTime

DateTime 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

void setFileTime(DateTime 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

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

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

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

getFileMD5

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

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 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.