@Deprecated public class DistFiles extends Object
| 构造器 | 说明 |
|---|---|
DistFiles() |
已过时。
|
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
static boolean |
copy(DistFile src,
DistFile dst) |
已过时。
|
static DistAgentFile |
createAgentFile(String path,
String target) |
已过时。
|
static DistAgentFile |
createAgentFile(String path,
String target,
String targetDevice) |
已过时。
|
static DistFile |
createFile(String path) |
已过时。
|
static DistLinkFile |
createLinkFile(String path,
String target) |
已过时。
|
static boolean |
delete(String path) |
已过时。
|
static boolean |
delete(DistFile file) |
已过时。
|
static boolean |
isSupported() |
已过时。
|
static boolean |
move(DistFile src,
DistFile dst) |
已过时。
|
@Deprecated public DistFiles()
@Deprecated public static boolean isSupported()
true if DistFiles is supported on current device; returns
false otherwise.@Deprecated public static DistFile createFile(String path) throws IOException
This method first checks whether the distributed file denoted by the specified abstract pathname already exists.
path - Indicates the pathname of the distributed file to create.IOException - Throws this exception if an I/O error occurs.@Deprecated public static DistLinkFile createLinkFile(String path, String target) throws IOException
This method first checks whether the link file denoted by the specified abstract pathname already exists.
path - Indicates the pathname of the source distributed file.target - Indicates the pathname of the link file to create.IOException - Throws this exception if an I/O error occurs.@Deprecated public static DistAgentFile createAgentFile(String path, String target) throws IOException
This method first checks whether the agent file denoted by the specified abstract pathname already exists.
path - Indicates the pathname of the source distributed file.target - Indicates the pathname of the agent file to create.IOException - Throws this exception if an I/O error occurs.@Deprecated public static DistAgentFile createAgentFile(String path, String target, String targetDevice) throws IOException
This method first checks whether the agent file denoted by the specified abstract pathname already exists on the specified remote device.
path - Indicates the pathname of the source distributed file.target - Indicates the pathname of the agent file to create.targetDevice - Indicates the remote device on which the agent file is to be created.IOException - Throws this exception if an I/O error occurs.@Deprecated public static boolean delete(String path)
The source distributed file of an agent file will also be deleted, while that of a link file will not.
path - Indicates the pathname of the file or directory to delete.true if the file or directory is deleted; returns false otherwise.@Deprecated public static boolean delete(DistFile file)
file - Indicates the distributed file or empty directory to delete.true if the file or directory is deleted; returns false otherwise.@Deprecated public static boolean copy(DistFile src, DistFile dst) throws IOException
This method supports cross-device copying.
src - Indicates the source distributed file.dst - 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 static boolean move(DistFile src, DistFile dst) throws IOException
src - Indicates the source path.dst - Indicates the target path.true if the distributed file is successfully moved to the target path; returns
false otherwise.IOException - Throws this exception if an I/O error occurs.