|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--com.starbase.starteam.CacheRef
|
+--com.starbase.starteam.NamedCacheRef
|
+--com.starbase.starteam.TypedResource
|
+--com.starbase.starteam.SimpleTypedResource
|
+--com.starbase.starteam.Item
|
+--com.starbase.starteam.File
Represents a StarTeam File item.
| Nested Class Summary |
| Nested classes inherited from class com.starbase.starteam.Item |
Item.LockType |
| Constructor Summary | |
File(Folder parentFolder)
Creates a new file instance. |
|
| Method Summary | |
void |
add(java.io.File file,
java.lang.String name,
java.lang.String desc,
java.lang.String reason,
int lockStatus,
boolean eol,
boolean updateStatus)
Adds this (new) file to the project/view. |
AddResult |
addAndReturn(java.io.File file,
java.lang.String name,
java.lang.String desc,
java.lang.String reason,
int lockStatus,
boolean eol,
boolean updateStatus)
Adds this (new) file to the project/view. |
void |
addFromStream(java.io.InputStream stream,
java.lang.String fileName,
java.lang.String description,
java.lang.String comment,
int lockStatus,
boolean eol)
Adds a new file to the repository using the provided stream's file contents. |
void |
checkin(CheckinOptions options)
Check in this File using the specified options |
void |
checkin(java.lang.String reason,
int lockStatus,
boolean forceCheckin,
boolean eol,
boolean updateStatus)
Check in a new version of this file. |
void |
checkinFrom(java.io.File file,
java.lang.String reason,
int lockStatus,
boolean forceCheckin,
boolean eol,
boolean updateStatus)
Adds this new version of the file to the repository. |
CheckInResult |
checkinFromAndReturn(java.io.File file,
java.lang.String reason,
int lockStatus,
boolean forceCheckin,
boolean eol,
boolean updateStatus)
Adds this new version of the file to the repository. |
void |
checkinFromStream(java.io.InputStream source,
java.lang.String checkinReason,
int lockStatus,
boolean eol)
Adds this new version of the file to the repository. |
void |
checkout(CheckoutOptions options)
Check out this File using the specified options. |
void |
checkout(int lockStatus,
boolean timeStampNow,
boolean eol,
boolean updateStatus)
Checks out the tip version of this file. |
boolean |
checkoutByDate(java.io.File checkoutTo,
OLEDate date,
int lockStatus,
boolean timeStampNow,
boolean eol,
boolean updateStatus)
Check out by date, overriding the default working file location. |
boolean |
checkoutByLabelID(java.io.File checkoutTo,
int labelID,
int lockStatus,
boolean timeStampNow,
boolean eol,
boolean updateStatus)
Check out by label, overriding the default working file location. |
boolean |
checkoutByVersion(java.io.File checkoutTo,
int viewVersion,
int lockStatus,
boolean timeStampNow,
boolean eol,
boolean updateStatus)
Check out by view version, overriding the default working file location. |
void |
checkoutTo(java.io.File checkoutTo,
int lockStatus,
boolean timeStampNow,
boolean eol,
boolean updateStatus)
Check out the tip version, overriding the working file location. |
CheckOutResult |
checkoutToAndReturn(java.io.File checkoutTo,
int lockStatus,
boolean timeStampNow,
boolean eol,
boolean updateStatus)
Check out the tip version, obyverriding the working file location. |
void |
checkoutToStream(java.io.OutputStream destination,
int lockStatus,
boolean eol)
Checks out the tip version of this file and write it to the specified stream. |
void |
convertArchive(boolean useDeltaStorage,
int compressionLevel)
This method causes the server to convert all versions stored in the archives associated with the file to the storage parameters specified. |
void |
convertToNativeIIArchive(boolean bDeleteOldArchives)
Convert this File's archives to Native II format. |
boolean |
deleteLocalFile(java.io.File file)
Deletes the specified local file and has the side effect of deleting sync information from the server about the file. |
void |
deleteSyncInfo(java.io.File file)
Removes sync information from this File object's Server. |
boolean |
equals(java.lang.Object source)
returns true if this object instance is equal to the source |
File |
findCommonAnscestor(File other)
Deprecated. |
File |
findMergeVersion()
Returns a revision from this file's history that represents the most recent common ancestor of this file with the last known version on disk. |
int |
getArchiveFormat()
The format of archive the server happens to be storing this file in -- Native-I, Native-II, or not applicable. |
java.lang.String |
getArchiveFormatDisplayName(int value)
Returns a user-friendly display name for the given ArchiveFormat value. |
java.lang.String |
getArchiveName()
The name of archive. |
int |
getArchiveType()
The type of archive the server happens to be storing this file in--StarTeam native, PVCS, Visual SourceSafe, etc. |
java.lang.String |
getArchiveTypeDisplayName(int value)
Returns a user-friendly display name for the given ArchiveType value. |
Keyword[] |
getBlankKeywords()
Returns an array of the default StarTeam keywords. |
int |
getCharset()
The character set this file appears to use. |
java.lang.String |
getCharsetDisplayName(int value)
Returns a user-friendly display name for the given Charset value. |
int |
getCompression()
Returns an int describing the compression
level being used to store versions of this file in the repository. |
java.lang.String |
getCompressionDisplayName(int value)
Returns a user-friendly display name for the given Compression value. |
OLEDate |
getContentModificationTime()
Returns the "last modified" timestamp of the working file when it was checked in to create this version. |
int |
getContentVersion()
Returns the content version number for this file. |
static java.lang.String |
getDefaultEncoding()
Deprecated. |
java.lang.String |
getDescription()
Returns the description of this file. |
java.lang.String |
getExtension()
Returns the file name extension. |
FileSyncInfo |
getFileSyncInfo(MD5 compareMD5,
int compareSize,
MD5 syncMD5,
int syncSize,
OLEDate syncTime)
Deprecated. Use getFileSyncInfoEx, which supports file sizes greater than 2GB. |
FileSyncInfo |
getFileSyncInfoEx(MD5 compareMD5,
long compareSize,
MD5 syncMD5,
long syncSize,
OLEDate syncTime)
Attempts to determine what version of the file is actually on disk. |
java.lang.String |
getFullName()
Returns the concatenation of this file's name with the working directory of the file's parent folder. |
int |
getLastKnownStatus()
Returns the last known status of the default working file relative to the file in the repository, using only information provided by the client during the last status update operation. |
int |
getLastKnownVersionOnDisk()
Returns the last known version of this file on disk. |
boolean |
getLocalFileExecutable()
Returns true if the local file is executable. |
boolean |
getLocalFileExists()
Returns true if the local file exists on disk. |
java.lang.String |
getLocalName()
Returns the local file name, as recognized by the local file system. |
java.lang.String |
getLocalPath()
Returns the local path, as recognized by the local file system. |
int |
getLocalSize()
Deprecated. Use getLocalSizeEx, which supports file sizes greater than 2GB. |
long |
getLocalSizeEx()
Returns the local file's size. |
OLEDate |
getLocalTimeStamp()
Returns the local file's time stamp. |
byte[] |
getMD5()
The MD5 hash bytes of the file contents for this version. |
java.lang.String |
getName()
Returns the name of this file. |
int[] |
getPossibleArchiveFormat()
Returns the possible enum codes that are valid values for the ArchiveFormat property. |
int[] |
getPossibleArchiveType()
Returns the possible enum codes that are valid values for the ArchiveType property. |
int[] |
getPossibleCharset()
Returns the possible enum codes that are valid values for the Charset property. |
int[] |
getPossibleCompression()
Returns the possible enum codes that are valid values for the Compression property. |
int[] |
getPossibleStorageFormat()
Returns the possible enum codes that are valid values for the StorageFormat property. |
int |
getSize()
Deprecated. Use getSizeEx, which supports file sizes greater than 2GB. |
long |
getSizeEx()
The size of this file in the repository. |
int |
getSmartStatus()
Gets the status of the default working file relative to the latest version of this file in the repository. |
int |
getSmartStatus(java.io.File file)
Gets the status of the given working file relative to the latest version of this file in the repository. |
int |
getStatus()
Gets the status of the default working file relative to the latest version of this file in the repository. |
int |
getStatus(java.io.File file)
Gets the status of the given working file relative to the latest version of this file in the repository. |
int |
getStatusByMD5(MD5 md5)
Returns the status of the default working file relative to the file in the repository, using the given size MD5 signature of the file. |
int |
getStatusByTime(int size,
OLEDate lastModified)
Deprecated. Use getStatusByTimeEx, which supports file sizes greater than 2GB. |
int |
getStatusByTimeEx(long size,
OLEDate lastModified)
Returns the status of the default working file relative to the file in the repository, using the given size and last modified date of the file. |
boolean |
getStatusKnown()
Returns true if status information is known for this file. |
int |
getStatusNow()
Same as getStatus, but this method first goes to the server to refresh the status information. |
int |
getStorageFormat()
Returns an enumerated value describing the storage format being used to store versions of this file--that is, delta or full version storage. |
java.lang.String |
getStorageFormatDisplayName(int value)
Returns a user-friendly display name for the given StorageFormat value. |
int |
getVaultVersion()
Returns the vault version number for this file. |
int |
hashCode()
returns a unique hash for all instances of this type |
boolean |
isBinary()
Tells whether this file (in the repository) has been determined to be a binary file. |
static boolean |
isInSyncByMD5(java.io.File file,
FileSyncInfo syncInfo)
Determines whether or not the given file has the MD5 signature indicated in the given FileSyncInfo record. |
static boolean |
isInSyncByTime(java.io.File file,
FileSyncInfo syncInfo)
Determines whether or not the given file has the size and last modified date indicated in the given FileSyncInfo record. |
void |
lock()
Obtains an exclusive lock on this file without attempting to break an existing lock. |
java.io.File |
moveLocalFile(java.io.File fromFile,
java.lang.String toFolderPath)
Moves the local file to the specified folder and has the side effect of moving the status information from the original file to the newly created one Deletes the original file and it's status information at the end of the move |
void |
putLock(int lockType,
boolean breakLock)
Sets the current user's lock for this file. |
void |
removeAndDeleteLocal()
Removes the file item from its parent folder. |
void |
rename(java.lang.String newName)
Renames this file to a new name along with the side effect of changing the corresponding local file's name as well. |
void |
resyncStatus(MD5 compareMD5,
int compareSize,
MD5 syncMD5,
int syncSize,
OLEDate syncTime)
Deprecated. Use resyncStatusEx, which supports file sizes greater than 2GB. |
void |
resyncStatusEx(MD5 compareMD5,
long compareSize,
MD5 syncMD5,
long syncSize,
OLEDate syncTime)
Attempts to update the repository information about what version of the file is actually on disk. |
void |
setCompression(int compressionLevel)
Sets this file's compression level being used to store versions of this file in the repository. |
void |
setContentModificationTime(OLEDate time)
Sets this file's content modification time. |
static void |
setDefaultEncoding(java.lang.String name)
Deprecated. |
void |
setDescription(java.lang.String description)
Sets the description of this file. |
void |
setName(java.lang.String name)
Sets a new name for this file. |
void |
setStorageFormat(int storageFormat)
Set the storage format to be used for this filer. |
java.lang.String |
toString()
Returns the name of this file. |
void |
unlock()
Removes the current user's lock from this file. |
void |
update()
Presists a new version of this file object in the repository. |
void |
updateStatus(boolean eolConversion,
boolean useMD5)
Attempts to update the repository information about what version of the file is actually on disk. |
void |
updateStatusAfterMerge()
Updates the server's status information to reflect the fact that the local file's contents were derived from this file's contents. |
void |
updateStatusFromMD5(MD5 signature)
Updates the server's status information to reflect the fact that the local file's content has the given MD5 signature. |
void |
updateStatusFromTime(int size,
OLEDate lastModified)
Deprecated. Use updateStatusFromTimeEx, which supports file sizes greater than 2GB. |
void |
updateStatusFromTimeEx(long size,
OLEDate lastModified)
Updates the server's status information to reflect the fact that the local file's content has the given size and last modified date. |
void |
updateStatusInformation(int fileSize,
OLEDate lastModified,
MD5 signature)
Deprecated. Use updateStatusInformationEx, which supports file sizes greater than 2GB. |
void |
updateStatusInformationEx(long fileSize,
OLEDate lastModified,
MD5 signature)
Updates the server's status information to reflect the fact that the local file's content has the given size, last modified date, and MD5 signature. |
boolean |
upgradeSyncInfo()
Deprecated. All supported versions of the StarTeam server support client-managed status information. Upgrading to client-managed status is no longer necessary. |
boolean |
usesKeywords()
Tells whether or not this file will use keyword expansion. |
| Methods inherited from class com.starbase.starteam.TypedResource |
addToIntArray, removeFromIntArray |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public File(Folder parentFolder)
parentFolder - the folder that will contain this file| Method Detail |
public static java.lang.String getDefaultEncoding()
Encoding.getDefaultStarTeamEncoding()public static void setDefaultEncoding(java.lang.String name)
name - The name of the default file encoding. Currently, this affects only
keyword expansion.Encoding.setDefaultStarTeamEncoding(com.borland.starteam.util.Encoding)public java.lang.String getFullName()
DisembodiedItemException - if this File is disembodiedItem.isDisembodied()public java.lang.String getName()
File.getFullName()public void setName(java.lang.String name)
update().
name - the new name of this fileFile.update()public java.lang.String getDescription()
PropertyNames.FILE_DESCRIPTIONpublic void setDescription(java.lang.String description)
update() or one of the
checkin methods.
description - the new description of this filePropertyNames.FILE_DESCRIPTION,
File.update(),
File.add(java.io.File, java.lang.String, java.lang.String, java.lang.String, int, boolean, boolean),
File.checkin(com.starbase.starteam.CheckinOptions),
File.checkinFrom(java.io.File, java.lang.String, int, boolean, boolean, boolean)public int getVaultVersion()
PropertyNames.FILE_VAULT_BRANCH_VERSIONpublic int getContentVersion()
PropertyNames.FILE_CONTENT_REVISION,
File.getStatus()public OLEDate getContentModificationTime()
PropertyNames.FILE_FILE_TIME_AT_CHECKIN,
File.setContentModificationTime(com.starbase.util.OLEDate)public void setContentModificationTime(OLEDate time)
time - the content modification time for this filePropertyNames.FILE_FILE_TIME_AT_CHECKIN,
File.getContentModificationTime()public int getSize()
PropertyNames.FILE_SIZE,
File.getSizeEx()public long getSizeEx()
PropertyNames.FILE_SIZEpublic int getArchiveType()
File.getPossibleArchiveType(),
File.getArchiveTypeDisplayName(int),
PropertyNames.FILE_ARCHIVE_TYPEpublic int[] getPossibleArchiveType()
File.getArchiveType(),
File.getArchiveTypeDisplayName(int),
TypedResource.getPossibleValues(java.lang.String),
PropertyNames.FILE_ARCHIVE_TYPEpublic java.lang.String getArchiveTypeDisplayName(int value)
value - The ArchiveType value to be converted to a display name.
File.getArchiveType(),
File.getPossibleArchiveType(),
TypedResource.getEnumDisplayName(java.lang.String, int),
PropertyNames.FILE_ARCHIVE_TYPEpublic int getArchiveFormat()
File.getPossibleArchiveFormat(),
File.getArchiveTypeDisplayName(int),
PropertyNames.FILE_ARCHIVE_FORMAT,
SupportedFeatures.hasNativeIIVault()public java.lang.String getArchiveName()
PropertyNames.FILE_ARCHIVE_NAME,
SupportedFeatures.hasNativeIIVault()public int[] getPossibleArchiveFormat()
File.getArchiveFormat(),
File.getArchiveFormatDisplayName(int),
TypedResource.getPossibleValues(java.lang.String),
PropertyNames.FILE_ARCHIVE_FORMATpublic java.lang.String getArchiveFormatDisplayName(int value)
value - The ArchiveFormat value to be converted to a display name.
File.getArchiveFormat(),
File.getPossibleArchiveFormat(),
TypedResource.getEnumDisplayName(java.lang.String, int),
PropertyNames.FILE_ARCHIVE_FORMATpublic int getCharset()
File.isBinary(),
File.getPossibleCharset(),
File.getCharsetDisplayName(int),
PropertyNames.FILE_ENCODINGpublic int[] getPossibleCharset()
File.getCharset(),
File.getCharsetDisplayName(int),
TypedResource.getPossibleValues(java.lang.String),
PropertyNames.FILE_ENCODINGpublic java.lang.String getCharsetDisplayName(int value)
value - The Charset value to be converted to a display name.
File.getCharset(),
File.getPossibleCharset(),
TypedResource.getEnumDisplayName(java.lang.String, int),
PropertyNames.FILE_ENCODINGpublic byte[] getMD5()
PropertyNames.FILE_MD5_CHECKSUM,
MD5public int getStorageFormat()
File.getPossibleStorageFormat(),
File.getStorageFormatDisplayName(int),
PropertyNames.FILE_STORAGE_TYPEpublic void setStorageFormat(int storageFormat)
storageFormat - The new storage format enumerated value for this file.public int[] getPossibleStorageFormat()
File.getStorageFormat(),
File.getStorageFormatDisplayName(int),
TypedResource.getPossibleValues(java.lang.String),
PropertyNames.FILE_STORAGE_TYPEpublic java.lang.String getStorageFormatDisplayName(int value)
value - The StorageFormat value to be converted to a display name.
File.getStorageFormat(),
File.getPossibleStorageFormat(),
TypedResource.getEnumDisplayName(java.lang.String, int),
PropertyNames.FILE_STORAGE_TYPEpublic int getCompression()
int describing the compression
level being used to store versions of this file in the repository.
File.getPossibleCompression(),
File.getCompressionDisplayName(int),
PropertyNames.FILE_COMPRESSION_LEVELpublic void setCompression(int compressionLevel)
compressionLevel - The new value for this file's compression level in the repositorypublic int[] getPossibleCompression()
File.getCompression(),
File.getCompressionDisplayName(int),
TypedResource.getPossibleValues(java.lang.String),
PropertyNames.FILE_COMPRESSION_LEVELpublic java.lang.String getCompressionDisplayName(int value)
value - The Compression value to be converted to a display name.
File.getCompression(),
File.getPossibleCompression(),
TypedResource.getEnumDisplayName(java.lang.String, int),
PropertyNames.FILE_COMPRESSION_LEVELpublic File findCommonAnscestor(File other)
other - the file for which a common ancestor of this file is to be found
Item.getCommonAncestor(com.starbase.starteam.Item)public File findMergeVersion()
DisembodiedItemException - if this File is disembodiedItem.isDisembodied()public boolean isBinary()
FileUtils.isBinary(java.io.File)public void update()
checkin methods for that.
update in class Itempublic void rename(java.lang.String newName)
newName - the file's new name
public void convertArchive(boolean useDeltaStorage,
int compressionLevel)
useDeltaStorage - true if the archive should use delta storagecompressionLevel - desired compression level. This value must be one of the possible values for the FILE_COMPRESSION_LEVEL enumerated property.PropertyNames.FILE_COMPRESSION_LEVEL,
PropertyEnums.FILE_COMPRESSION_LEVEL_NONE,
PropertyEnums.FILE_COMPRESSION_LEVEL_MAXIMIZE_SPEED,
PropertyEnums.FILE_COMPRESSION_LEVEL_DEFAULT,
PropertyEnums.FILE_COMPRESSION_LEVEL_MAXIMIZE_COMPRESSIONpublic void convertToNativeIIArchive(boolean bDeleteOldArchives)
bDeleteOldArchives - True if old archives should be deleted, otherwise false.
public void add(java.io.File file,
java.lang.String name,
java.lang.String desc,
java.lang.String reason,
int lockStatus,
boolean eol,
boolean updateStatus)
throws java.io.IOException
file - the local file whose contents are to be used for this new filename - the repository name of the file.desc - the file's decriptionreason - the initial checkin reasonlockStatus - the file's lock status once it has been addedeol - if true will convert end-of-lines to CRLFupdateStatus - if true will have StarTeam remember what file is on disk
java.io.IOException - if there are problems reading the local file
DisembodiedItemException - if this File is disembodiedItem.isDisembodied()
public AddResult addAndReturn(java.io.File file,
java.lang.String name,
java.lang.String desc,
java.lang.String reason,
int lockStatus,
boolean eol,
boolean updateStatus)
throws java.io.IOException
file - the local file whose contents are to be used for this new filename - the repository name of the file.desc - the file's decriptionreason - the initial checkin reasonlockStatus - the file's lock status once it has been addedeol - if true will convert end-of-lines to CRLFupdateStatus - if true will have StarTeam remember what file is on disk
java.io.IOException - if there are problems reading the local file
DisembodiedItemException - if this File is disembodiedItem.isDisembodied()
public void addFromStream(java.io.InputStream stream,
java.lang.String fileName,
java.lang.String description,
java.lang.String comment,
int lockStatus,
boolean eol)
throws java.io.IOException
stream - the stream source whose contents are to be used for this new filelockStatus - the file's lock status once it has been addedeol - if true will convert end-of-lines to CRLF
java.io.IOException - if there are problems reading the local file
DisembodiedItemException - if this File is disembodiedItem.isDisembodied()
public void checkin(CheckinOptions options)
throws java.io.IOException
options - the options to be used to check out this file.
java.io.IOException
public void checkin(java.lang.String reason,
int lockStatus,
boolean forceCheckin,
boolean eol,
boolean updateStatus)
throws java.io.IOException
reason - the checkin reason or comment for this revisionlockStatus - the new lock status for this fileforceCheckin - false if you want the server to throw an exception
if the file's status is anything other than "Modified".eol - if true will convert all end-of-lines to CRLF (for non-binary files)updateStatus - if true will have StarTeam remember what version of this file is on your local disk so getStatus() will return the correct value
java.io.IOException - is there are problems reading the local file
DisembodiedItemException - if this File is disembodiedItem.isDisembodied(),
Item.LockType,
File.getStatus()
public void checkinFrom(java.io.File file,
java.lang.String reason,
int lockStatus,
boolean forceCheckin,
boolean eol,
boolean updateStatus)
throws java.io.IOException
file - the location of the file whose contents are used for the
new revision of this filereason - the checkin reason or comment for this revisionlockStatus - the new lock status for this fileforceCheckin - false if you want the server to throw an exception
if the file's status is anything other than "Modified".eol - if true will convert all end-of-lines to CRLF (for non-binary files)updateStatus - if true will have StarTeam remember what version of this file is on your local disk so getStatus() will return the correct value
java.io.IOException - is there are problems reading the local file
DisembodiedItemException - if this File is disembodiedItem.isDisembodied(),
Item.LockType,
File.getStatus()
public CheckInResult checkinFromAndReturn(java.io.File file,
java.lang.String reason,
int lockStatus,
boolean forceCheckin,
boolean eol,
boolean updateStatus)
throws java.io.IOException
file - the location of the file whose contents are used for the
new revision of this filereason - the checkin reason or comment for this revisionlockStatus - the new lock status for this fileforceCheckin - false if you want the server to throw an exception
if the file's status is anything other than "Modified".eol - if true will convert all end-of-lines to CRLF (for non-binary files)updateStatus - if true will have StarTeam remember what version of this file is on your local disk so getStatus() will return the correct value
java.io.IOException - is there are problems reading the local file
DisembodiedItemException - if this File is disembodiedItem.isDisembodied(),
Item.LockType,
File.getStatus()
public void checkinFromStream(java.io.InputStream source,
java.lang.String checkinReason,
int lockStatus,
boolean eol)
throws java.io.IOException
source - the source input stream providing the new contents of this file revisionlockStatus - the new lock status for this fileeol - if true will convert all end-of-lines to CRLF (for non-binary files)
java.io.IOException - is there are problems reading the local fileItem.LockType
public void checkout(CheckoutOptions options)
throws java.io.IOException
options - the options to be used to check out this file.
java.io.IOException
public void checkout(int lockStatus,
boolean timeStampNow,
boolean eol,
boolean updateStatus)
throws java.io.IOException
lockStatus - the new lock status for this filetimeStampNow - if false the local file will be given the same "last modified" time stamp as this revision has when checked ineol - if true will convert all end-of-lines to your local platforms's end of line conventionupdateStatus - if true will have StarTeam remember what version of this file is on your local disk so getStatus() will return the correct value
java.io.IOException - is there are problems writing to the local file
DisembodiedItemException - if this File is disembodiedItem.isDisembodied(),
Item.LockType,
File.getContentModificationTime(),
File.getStatus()
public void checkoutTo(java.io.File checkoutTo,
int lockStatus,
boolean timeStampNow,
boolean eol,
boolean updateStatus)
throws java.io.IOException
checkoutTo - the location of where the contents should be checked out tolockStatus - the new lock status for this filetimeStampNow - if false the local file will be given the same "last modified" time stamp as this revision has when checked ineol - if true will convert all end-of-lines to your local platforms's end of line conventionupdateStatus - if true will have StarTeam remember what version of this file is on your local disk so getStatus() will return the correct value
java.io.IOException - is there are problems writing to the local file
DisembodiedItemException - if this File is disembodiedItem.isDisembodied(),
Item.LockType,
File.getContentModificationTime(),
Platform#getEOL(),
File.getStatus()
public CheckOutResult checkoutToAndReturn(java.io.File checkoutTo,
int lockStatus,
boolean timeStampNow,
boolean eol,
boolean updateStatus)
throws java.io.IOException
checkoutTo - the location of where the contents should be checked out tolockStatus - the new lock status for this filetimeStampNow - if false the local file will be given the same "last modified" time stamp as this revision has when checked ineol - if true will convert all end-of-lines to your local platforms's end of line conventionupdateStatus - if true will have StarTeam remember what version of this file is on your local disk so getStatus() will return the correct value
java.io.IOException - is there are problems writing to the local file
DisembodiedItemException - if this File is disembodiedItem.isDisembodied(),
Item.LockType,
File.getContentModificationTime(),
Platform#getEOL(),
File.getStatus()
public boolean checkoutByDate(java.io.File checkoutTo,
OLEDate date,
int lockStatus,
boolean timeStampNow,
boolean eol,
boolean updateStatus)
throws java.io.IOException
checkoutTo - the file on disk where the contents will be placeddate - the date specifying which revision to checkoutlockStatus - the new lock status for this filetimeStampNow - if false the local file will be given the same "last modified" time stamp as this revision has when checked ineol - if true will convert all end-of-lines to your local platforms's end of line conventionupdateStatus - if true will have StarTeam remember what version of this file is on your local disk so getStatus() will return the correct value
java.io.IOException - is there are problems writing to the local file
DisembodiedItemException - if this File is disembodiedItem.isDisembodied(),
Item.getFromHistoryByDate(com.starbase.util.OLEDate),
Item.LockType,
File.getContentModificationTime(),
Platform#getEOL(),
File.getStatus()
public boolean checkoutByLabelID(java.io.File checkoutTo,
int labelID,
int lockStatus,
boolean timeStampNow,
boolean eol,
boolean updateStatus)
throws java.io.IOException
checkoutTo - the file on disk where the contents will be placedlabelID - the label ID specifying which revision to checkoutlockStatus - the new lock status for this filetimeStampNow - if false the local file will be given the same "last modified" time stamp as this revision has when checked ineol - if true will convert all end-of-lines to your local platforms's end of line conventionupdateStatus - if true will have StarTeam remember what version of this file is on your local disk so getStatus() will return the correct value
java.io.IOException - is there are problems writing to the local file
DisembodiedItemException - if this File is disembodiedItem.isDisembodied(),
Item.getFromHistoryByLabelID(int),
Item.LockType,
File.getContentModificationTime(),
Platform#getEOL(),
File.getStatus()
public boolean checkoutByVersion(java.io.File checkoutTo,
int viewVersion,
int lockStatus,
boolean timeStampNow,
boolean eol,
boolean updateStatus)
throws java.io.IOException
checkoutTo - the file on disk where the contents will be placedviewVersion - the view version of the file to check outlockStatus - the new lock status for this filetimeStampNow - if false the local file will be given the same "last modified" time stamp as this revision has when checked ineol - if true will convert all end-of-lines to your local platforms's end of line conventionupdateStatus - if true will have StarTeam remember what version of this file is on your local disk so getStatus() will return the correct value
java.io.IOException - is there are problems writing to the local file
DisembodiedItemException - if this File is disembodiedItem.isDisembodied(),
Item.getFromHistoryByVersion(int),
Item.LockType,
File.getContentModificationTime(),
Platform#getEOL(),
File.getStatus()
public void checkoutToStream(java.io.OutputStream destination,
int lockStatus,
boolean eol)
throws java.io.IOException
destination - the output stream to which the file will be writtenlockStatus - the new lock status for this fileeol - if true will convert all end-of-lines to your local platforms's end of line convention
java.io.IOException - is there are problems writing to the local fileItem.LockType
public void updateStatus(boolean eolConversion,
boolean useMD5)
throws java.io.IOException
Example uses of this would be if you copied the file to its new location through the OS rather than StarTeam the file's status would be "Unknown" If the local file had the same contents as the tip version of the file in the repository then further status computations would report the file as "Current".