|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.starbase.starteam.FileStream
Provides utility function for manipulating File streams.
| Constructor Summary | |
FileStream()
Deprecated. |
|
| Method Summary | |
static int |
computeCompareMD5(java.io.File file,
boolean bUsesKeywords,
boolean bConvertEOL,
MD5 md5)
Deprecated. Use computeCompareMD5Ex, which supports file sizes greater than 2GB. |
static long |
computeCompareMD5Ex(java.io.File file,
boolean bUsesKeywords,
boolean bConvertEOL,
MD5 md5)
Derives an MD5 signature representing what the content of the given file would be if stored in the StarTeam repository. |
static int |
computeSyncMD5(java.io.File file,
MD5 md5)
Deprecated. Use computeSyncMD5Ex, which supports file sizes greater than 2GB. |
static long |
computeSyncMD5Ex(java.io.File file,
MD5 md5)
Derives an MD5 signature representing an actual working file on disk. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public FileStream()
| Method Detail |
public static int computeSyncMD5(java.io.File file,
MD5 md5)
throws java.io.IOException
file - The working file on disk. An exception
will be thrown if the file does not exist or cannot
be read.md5 - A newly initialized MD5 signature. On
output, contains the MD5 signature calculated from
the file's content.
java.io.IOExceptionFileStream.computeCompareMD5(java.io.File, boolean, boolean, com.starbase.util.MD5),
File.resyncStatus(com.starbase.util.MD5, int, com.starbase.util.MD5, int, com.starbase.util.OLEDate),
Status,
FileStream.computeSyncMD5Ex(java.io.File, com.starbase.util.MD5)
public static long computeSyncMD5Ex(java.io.File file,
MD5 md5)
throws java.io.IOException
file - The working file on disk. An exception
will be thrown if the file does not exist or cannot
be read.md5 - A newly initialized MD5 signature. On
output, contains the MD5 signature calculated from
the file's content.
java.io.IOExceptionFileStream.computeCompareMD5(java.io.File, boolean, boolean, com.starbase.util.MD5),
File.resyncStatus(com.starbase.util.MD5, int, com.starbase.util.MD5, int, com.starbase.util.OLEDate),
Status
public static int computeCompareMD5(java.io.File file,
boolean bUsesKeywords,
boolean bConvertEOL,
MD5 md5)
throws java.io.IOException
Compensates for the effects of expanding keywords and performing end-of-line conversion on checkout.
file - The working file on disk. An exception
will be thrown if the file does not exist or cannot
be read.md5 - A newly initialized MD5 signature. On
output, contains the MD5 signature calculated from
the file's content, adjusted as determined by
bUsesKeywords and bConvertEOL.bUsesKeywords - True if this file uses keywords.
If true, then the signature is adjusted to compensate
for any keyword expansion that would occur on a checkin.
If this is a binary file (that is, if it contains at
least one '\0' character), bUsesKeywords is ignored,
and no adjustment is made to the signature.bConvertEOL - True if end-of-line conversion is
performed on this file. If true, then the signature
is adjusted to compensate for end-of-line conversion
that would occur on a checkin.
If this is a binary file (that is, if it contains at
least one '\0' character), bUsesKeywords is ignored,
and no adjustment is made to the signature.
java.io.IOExceptionFileStream.computeSyncMD5(java.io.File, com.starbase.util.MD5),
File.resyncStatus(com.starbase.util.MD5, int, com.starbase.util.MD5, int, com.starbase.util.OLEDate),
Status,
FileStream.computeCompareMD5Ex(java.io.File, boolean, boolean, com.starbase.util.MD5)
public static long computeCompareMD5Ex(java.io.File file,
boolean bUsesKeywords,
boolean bConvertEOL,
MD5 md5)
throws java.io.IOException
Compensates for the effects of expanding keywords and performing end-of-line conversion on checkout.
file - The working file on disk. An exception
will be thrown if the file does not exist or cannot
be read.md5 - A newly initialized MD5 signature. On
output, contains the MD5 signature calculated from
the file's content, adjusted as determined by
bUsesKeywords and bConvertEOL.bUsesKeywords - True if this file uses keywords.
If true, then the signature is adjusted to compensate
for any keyword expansion that would occur on a checkin.
If this is a binary file (that is, if it contains at
least one '\0' character), bUsesKeywords is ignored,
and no adjustment is made to the signature.bConvertEOL - True if end-of-line conversion is
performed on this file. If true, then the signature
is adjusted to compensate for end-of-line conversion
that would occur on a checkin.
If this is a binary file (that is, if it contains at
least one '\0' character), bUsesKeywords is ignored,
and no adjustment is made to the signature.
java.io.IOExceptionFileStream.computeSyncMD5(java.io.File, com.starbase.util.MD5),
File.resyncStatus(com.starbase.util.MD5, int, com.starbase.util.MD5, int, com.starbase.util.OLEDate),
Status
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||