软件包 | 描述 |
---|---|
java.nio.file |
定义的接口和类的java虚拟机访问文件,文件属性,文件系统。
|
java.nio.file.spi |
为
java.nio.file 包服务提供商类。
|
Modifier and Type | Class and Description |
---|---|
class |
LinkOption
定义如何处理符号链接的选项。
|
class |
StandardCopyOption
定义标准的复制选项。
|
Modifier and Type | Method and Description |
---|---|
static long |
Files.copy(InputStream in, Path target, CopyOption... options)
将所有字节从输入流复制到文件。
|
static Path |
Files.copy(Path source, Path target, CopyOption... options)
将一个文件复制到目标文件。
|
static Path |
Files.move(Path source, Path target, CopyOption... options)
移动或重命名一个文件到目标文件。
|
Modifier and Type | Method and Description |
---|---|
abstract void |
FileSystemProvider.copy(Path source, Path target, CopyOption... options)
将一个文件复制到目标文件。
|
abstract void |
FileSystemProvider.move(Path source, Path target, CopyOption... options)
移动或重命名一个文件到目标文件。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.