Serializable, Comparable<File>DistAgentFile, DistLinkFile@Deprecated public class DistFile extends File
java.io.File class and provides methods for the file manager to perform basic operations
on distributed files or directories.pathSeparator, pathSeparatorChar, separator, separatorChar| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
copyTo(DistFile file) |
已过时。
|
String |
getDevice() |
已过时。
|
String |
getGroup() |
已过时。
|
DistFile |
getParentFile() |
已过时。
|
boolean |
isDistFile() |
已过时。
|
DistFile[] |
listFiles() |
已过时。
|
DistFile[] |
listFiles(FileFilter filter) |
已过时。
|
DistFile[] |
listFiles(FilenameFilter filter) |
已过时。
|
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURL@Deprecated public DistFile(String path)
@Deprecated public boolean isDistFile()
true if this abstract pathname denotes a distributed file or directory; returns
false otherwise.@Deprecated public String getDevice()
local if this abstract pathname denotes a distributed file or directory; returns null
otherwise.@Deprecated public String getGroup()
@Deprecated public boolean copyTo(DistFile file) throws IOException
file - Indicates the target distributed file.true if the content is successfully copied to the target file; returns false
otherwise.IOException - Throws this exception if an I/O error occurs.@Deprecated public DistFile getParentFile()
getParentFile 在类中 File@Deprecated public DistFile[] listFiles()
@Deprecated public DistFile[] listFiles(FileFilter filter)
listFiles 在类中 Filefilter - Indicates the file filter.Files.newDirectoryStream(Path,java.nio.file.DirectoryStream.Filter)@Deprecated public DistFile[] listFiles(FilenameFilter filter)
listFiles 在类中 Filefilter - Indicates the file name filter.Files.newDirectoryStream(Path,String)