public class RpcPerforceFile extends File
Modifier and Type | Field and Description |
---|---|
static String |
systemTmpDirName |
static String |
TMP_FILE_PFX |
static String |
TMP_FILE_SFX |
static String |
TRACE_PREFIX |
pathSeparator, pathSeparatorChar, separator, separatorChar
Constructor and Description |
---|
RpcPerforceFile(String fileName,
RpcPerforceFileType fileType) |
RpcPerforceFile(String fileName,
RpcPerforceFileType fileType,
ClientLineEnding lineEnding) |
RpcPerforceFile(String fileName,
String fileTypeStr) |
Modifier and Type | Method and Description |
---|---|
boolean |
canCopyAsIs()
True IFF we should be able to copy this file as-is, i.e.
|
boolean |
copyTo(File targetFile)
Copy this file to another (target file).
|
static String |
createTempFileName(String tmpDirName) |
boolean |
decodeTo(File targetFile) |
boolean |
equals(Object obj) |
RpcPerforceFileType |
getFileType() |
ClientLineEnding |
getLineEnding() |
int |
hashCode() |
boolean |
renameTo(File targetFile)
Our "special" version of rename, intended to cope with the
cases when the normal rename won't work (typically cross-device
renames) or when we need to do some under-the-covers stitching
up (for example, GKZIP stream decoding).
|
boolean |
renameTo(File targetFile,
boolean alwaysCopyUnMunged)
Another special version of renameTo to support RPC implementation-
specific needs.
|
void |
setFileType(RpcPerforceFileType fileType) |
void |
setLineEnding(ClientLineEnding lineEnding) |
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURL
public static String TRACE_PREFIX
public static String systemTmpDirName
public static final String TMP_FILE_PFX
public static final String TMP_FILE_SFX
public RpcPerforceFile(String fileName, RpcPerforceFileType fileType)
public RpcPerforceFile(String fileName, RpcPerforceFileType fileType, ClientLineEnding lineEnding)
public boolean renameTo(File targetFile)
public boolean renameTo(File targetFile, boolean alwaysCopyUnMunged)
public boolean copyTo(File targetFile) throws IOException
IOException
public boolean decodeTo(File targetFile) throws IOException
IOException
public RpcPerforceFileType getFileType()
public void setFileType(RpcPerforceFileType fileType)
public ClientLineEnding getLineEnding()
public void setLineEnding(ClientLineEnding lineEnding)
public boolean canCopyAsIs()
public boolean equals(Object obj)
public int hashCode()
hashCode
in class File
File.hashCode()
Copyright © 2017 Perforce Software. All Rights Reserved.