Uses of Interface
java.nio.file.Path
-
Packages that use Path 软件包 描述 java.io 通过数据流,序列化和文件系统提供系统输入和输出。java.lang.module 通过解析和服务绑定来支持模块描述符和创建模块配置的类。java.net.http HTTP客户端和WebSocket APIjava.nio.channels 定义通道,表示与能够执行I / O操作的实体的连接,例如文件和套接字; 定义选择器,用于多路复用,非阻塞I / O操作。java.nio.file 定义Java虚拟机的接口和类,以访问文件,文件属性和文件系统。java.nio.file.spi java.nio.file程序包的服务提供程序类。java.util 包含集合框架,一些国际化支持类,服务加载器,属性,随机数生成,字符串解析和扫描类,base64编码和解码,位数组和几个其他实用程序类。javax.tools 为可以从程序调用的工具提供接口,例如编译器。jdk.jfr 该软件包提供了用于创建事件和控制Flight Recorder的类。jdk.jfr.consumer 此程序包包含用于使用Flight Recorder数据的类。jdk.nashorn.api.tree Nashorn解析器API提供接口以将ECMAScript源代码表示为抽象语法树(AST)和解析器以解析ECMAScript源脚本。 -
-
Uses of Path in java.io
Methods in java.io that return Path 变量和类型 方法 描述 PathFile. toPath()返回从此抽象路径构造的java.nio.file.Path对象。 -
Uses of Path in java.lang.module
Methods in java.lang.module with parameters of type Path 变量和类型 方法 描述 static ModuleFinderModuleFinder. of(Path... entries)返回一个模块查找器,它通过搜索一系列目录和/或打包模块来定位文件系统上的模块。 -
Uses of Path in java.net.http
Methods in java.net.http that return types with arguments of type Path 变量和类型 方法 描述 static HttpResponse.BodyHandler<Path>HttpResponse.BodyHandlers. ofFile(Path file)返回BodyHandler<Path>,返回BodySubscriber<Path>。static HttpResponse.BodyHandler<Path>HttpResponse.BodyHandlers. ofFile(Path file, OpenOption... openOptions)返回BodyHandler<Path>返回一个BodySubscriber<Path>从获得BodySubscribers.ofFile(Path,OpenOption...)。static HttpResponse.BodySubscriber<Path>HttpResponse.BodySubscribers. ofFile(Path file)返回BodySubscriber,它将响应正文存储在使用给定名称打开的文件中。static HttpResponse.BodySubscriber<Path>HttpResponse.BodySubscribers. ofFile(Path file, OpenOption... openOptions)返回BodySubscriber,它将响应主体存储在使用给定选项和名称打开的文件中。static HttpResponse.BodyHandler<Path>HttpResponse.BodyHandlers. ofFileDownload(Path directory, OpenOption... openOptions)返回BodyHandler<Path>,返回BodySubscriber<Path>,其中指定了下载目录,但文件名是从Content-Disposition响应头获取的。Methods in java.net.http with parameters of type Path 变量和类型 方法 描述 static HttpRequest.BodyPublisherHttpRequest.BodyPublishers. ofFile(Path path)请求正文发布者,它从文件的内容中获取数据。static HttpResponse.BodyHandler<Path>HttpResponse.BodyHandlers. ofFile(Path file)返回BodyHandler<Path>,返回BodySubscriber<Path>。static HttpResponse.BodyHandler<Path>HttpResponse.BodyHandlers. ofFile(Path file, OpenOption... openOptions)返回BodyHandler<Path>返回一个BodySubscriber<Path>从获得BodySubscribers.ofFile(Path,OpenOption...)。static HttpResponse.BodySubscriber<Path>HttpResponse.BodySubscribers. ofFile(Path file)返回BodySubscriber,它将响应正文存储在使用给定名称打开的文件中。static HttpResponse.BodySubscriber<Path>HttpResponse.BodySubscribers. ofFile(Path file, OpenOption... openOptions)返回BodySubscriber,它将响应主体存储在使用给定选项和名称打开的文件中。static HttpResponse.BodyHandler<Path>HttpResponse.BodyHandlers. ofFileDownload(Path directory, OpenOption... openOptions)返回BodyHandler<Path>,返回BodySubscriber<Path>,其中指定了下载目录,但文件名是从Content-Disposition响应头获取的。 -
Uses of Path in java.nio.channels
Methods in java.nio.channels with parameters of type Path 变量和类型 方法 描述 static AsynchronousFileChannelAsynchronousFileChannel. open(Path file, OpenOption... options)打开或创建用于读取和/或写入的文件,返回异步文件通道以访问该文件。static AsynchronousFileChannelAsynchronousFileChannel. open(Path file, Set<? extends OpenOption> options, ExecutorService executor, FileAttribute<?>... attrs)打开或创建用于读取和/或写入的文件,返回异步文件通道以访问该文件。static FileChannelFileChannel. open(Path path, OpenOption... options)打开或创建文件,返回文件通道以访问该文件。static FileChannelFileChannel. open(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs)打开或创建文件,返回文件通道以访问该文件。 -
Uses of Path in java.nio.file
Fields in java.nio.file with type parameters of type Path 变量和类型 字段 描述 static WatchEvent.Kind<Path>StandardWatchEventKinds. ENTRY_CREATE目录条目已创建。static WatchEvent.Kind<Path>StandardWatchEventKinds. ENTRY_DELETE目录条目已删除。static WatchEvent.Kind<Path>StandardWatchEventKinds. ENTRY_MODIFY目录条目已修改。Methods in java.nio.file that return Path 变量和类型 方法 描述 static PathFiles. copy(Path source, Path target, CopyOption... options)将文件复制到目标文件。static PathFiles. createDirectories(Path dir, FileAttribute<?>... attrs)首先通过创建所有不存在的父目录来创建目录。static PathFiles. createDirectory(Path dir, FileAttribute<?>... attrs)创建一个新目录。static PathFiles. createFile(Path path, FileAttribute<?>... attrs)创建一个新的空文件,如果该文件已存在则失败。static PathFiles. createLink(Path link, Path existing)为现有文件创建新链接(目录条目) (可选操作) 。static PathFiles. createSymbolicLink(Path link, Path target, FileAttribute<?>... attrs)创建指向目标的符号链接 (可选操作) 。static PathFiles. createTempDirectory(String prefix, FileAttribute<?>... attrs)在默认临时文件目录中创建一个新目录,使用给定的前缀生成其名称。static PathFiles. createTempDirectory(Path dir, String prefix, FileAttribute<?>... attrs)在指定目录中创建一个新目录,使用给定前缀生成其名称。static PathFiles. createTempFile(String prefix, String suffix, FileAttribute<?>... attrs)在默认临时文件目录中创建一个空文件,使用给定的前缀和后缀生成其名称。static PathFiles. createTempFile(Path dir, String prefix, String suffix, FileAttribute<?>... attrs)在指定目录中创建一个新的空文件,使用给定的前缀和后缀字符串生成其名称。static PathPaths. get(String first, String... more)将路径字符串或从路径字符串连接时的字符串序列转换为Path。static PathPaths. get(URI uri)将给定的URI转换为Path对象。PathPath. getFileName()返回此路径表示为Path对象的文件或目录的名称。PathPath. getName(int index)以Path对象的形式返回此路径的名称元素。PathPath. getParent()返回 父路径 ,如果此路径没有 父路径 ,则返回null。abstract PathFileSystem. getPath(String first, String... more)将路径字符串或从路径字符串连接时的字符串序列转换为Path。PathPath. getRoot()返回此路径的根组分作为Path对象,或null如果该路径不具有根组件。static PathFiles. move(Path source, Path target, CopyOption... options)将文件移动或重命名为目标文件。PathPath. normalize()返回此路径的路径,其中删除了冗余名称元素。static PathPath. of(String first, String... more)通过转换路径字符串或连接时形成路径字符串的字符串序列返回Path。static PathPath. of(URI uri)通过转换URI返回Path。static PathFiles. readSymbolicLink(Path link)读取符号链接的目标 (可选操作) 。PathPath. relativize(Path other)构造此路径与给定路径之间的相对路径。default PathPath. resolve(String other)PathPath. resolve(Path other)根据此路径解析给定路径。default PathPath. resolveSibling(String other)default PathPath. resolveSibling(Path other)根据此路径的parent路径解析给定路径。static PathFiles. setAttribute(Path path, String attribute, Object value, LinkOption... options)设置文件属性的值。static PathFiles. setLastModifiedTime(Path path, FileTime time)更新文件的上次修改时间属性。static PathFiles. setOwner(Path path, UserPrincipal owner)更新文件所有者。static PathFiles. setPosixFilePermissions(Path path, Set<PosixFilePermission> perms)设置文件的POSIX权限。PathPath. subpath(int beginIndex, int endIndex)返回一个相对Path,它是此路径的name元素的子序列。PathPath. toAbsolutePath()返回表示此路径的绝对路径的Path对象。PathPath. toRealPath(LinkOption... options)返回现有文件的 实际路径。static PathFiles. walkFileTree(Path start, FileVisitor<? super Path> visitor)走一个文件树。static PathFiles. walkFileTree(Path start, Set<FileVisitOption> options, int maxDepth, FileVisitor<? super Path> visitor)走一个文件树。static PathFiles. write(Path path, byte[] bytes, OpenOption... options)将字节写入文件。static PathFiles. write(Path path, Iterable<? extends CharSequence> lines, Charset cs, OpenOption... options)将文本行写入文件。static PathFiles. write(Path path, Iterable<? extends CharSequence> lines, OpenOption... options)将文本行写入文件。static PathFiles. writeString(Path path, CharSequence csq, Charset cs, OpenOption... options)写一个CharSequence到一个文件。static PathFiles. writeString(Path path, CharSequence csq, OpenOption... options)写一个CharSequence到一个文件。Methods in java.nio.file that return types with arguments of type Path 变量和类型 方法 描述 static Stream<Path>Files. find(Path start, int maxDepth, BiPredicate<Path,BasicFileAttributes> matcher, FileVisitOption... options)通过搜索以给定起始文件为根的文件树中的文件,返回Stream,其中填充了Path。abstract Iterable<Path>FileSystem. getRootDirectories()返回一个对象,以迭代根目录的路径。default Iterator<Path>Path. iterator()返回此路径的name元素的迭代器。static Stream<Path>Files. list(Path dir)返回一个延迟填充的Stream,其元素是目录中的条目。static DirectoryStream<Path>Files. newDirectoryStream(Path dir)打开一个目录,返回DirectoryStream以迭代目录中的所有条目。static DirectoryStream<Path>Files. newDirectoryStream(Path dir, String glob)打开一个目录,返回DirectoryStream以迭代目录中的条目。static DirectoryStream<Path>Files. newDirectoryStream(Path dir, DirectoryStream.Filter<? super Path> filter)打开一个目录,返回DirectoryStream以遍历目录中的条目。static Stream<Path>Files. walk(Path start, int maxDepth, FileVisitOption... options)通过遍历以给定起始文件为根的文件树,返回Stream,其中包含Path。static Stream<Path>Files. walk(Path start, FileVisitOption... options)通过遍历以给定起始文件为根的文件树,返回Stream,该区域填充Path。Methods in java.nio.file with parameters of type Path 变量和类型 方法 描述 intPath. compareTo(Path other)按字典顺序比较两条抽象路径。static longFiles. copy(InputStream in, Path target, CopyOption... options)将输入流中的所有字节复制到文件。static longFiles. copy(Path source, OutputStream out)将文件中的所有字节复制到输出流。static PathFiles. copy(Path source, Path target, CopyOption... options)将文件复制到目标文件。static PathFiles. createDirectories(Path dir, FileAttribute<?>... attrs)首先通过创建所有不存在的父目录来创建目录。static PathFiles. createDirectory(Path dir, FileAttribute<?>... attrs)创建一个新目录。static PathFiles. createFile(Path path, FileAttribute<?>... attrs)创建一个新的空文件,如果该文件已存在则失败。static PathFiles. createLink(Path link, Path existing)为现有文件创建新链接(目录条目) (可选操作) 。static PathFiles. createSymbolicLink(Path link, Path target, FileAttribute<?>... attrs)创建指向目标的符号链接 (可选操作) 。static PathFiles. createTempDirectory(Path dir, String prefix, FileAttribute<?>... attrs)在指定目录中创建一个新目录,使用给定前缀生成其名称。static PathFiles. createTempFile(Path dir, String prefix, String suffix, FileAttribute<?>... attrs)在指定目录中创建一个新的空文件,使用给定的前缀和后缀字符串生成其名称。static voidFiles. delete(Path path)删除文件。static booleanFiles. deleteIfExists(Path path)删除文件(如果存在)。booleanPath. endsWith(Path other)测试此路径是否以给定路径结束。static booleanFiles. exists(Path path, LinkOption... options)测试文件是否存在。static Stream<Path>Files. find(Path start, int maxDepth, BiPredicate<Path,BasicFileAttributes> matcher, FileVisitOption... options)通过搜索以给定起始文件为根的文件树中的文件,返回Stream,其中包含Path。static ObjectFiles. getAttribute(Path path, String attribute, LinkOption... options)读取文件属性的值。static <V extends FileAttributeView>
VFiles. getFileAttributeView(Path path, 类<V> type, LinkOption... options)返回给定类型的文件属性视图。static FileStoreFiles. getFileStore(Path path)返回表示文件所在文件存储的FileStore。static FileTimeFiles. getLastModifiedTime(Path path, LinkOption... options)返回文件的上次修改时间。static UserPrincipalFiles. getOwner(Path path, LinkOption... options)返回文件的所有者。static Set<PosixFilePermission>Files. getPosixFilePermissions(Path path, LinkOption... options)返回文件的POSIX文件权限。static booleanFiles. isDirectory(Path path, LinkOption... options)测试文件是否是目录。static booleanFiles. isExecutable(Path path)测试文件是否可执行。static booleanFiles. isHidden(Path path)判断文件是否被视为 隐藏 。static booleanFiles. isReadable(Path path)测试文件是否可读。static booleanFiles. isRegularFile(Path path, LinkOption... options)测试文件是否是具有不透明内容的常规文件。static booleanFiles. isSameFile(Path path, Path path2)测试两个路径是否找到相同的文件。static booleanFiles. isSymbolicLink(Path path)测试文件是否是符号链接。static booleanFiles. isWritable(Path path)测试文件是否可写。static Stream<String>Files. lines(Path path)从文件中读取所有行,如Stream。static Stream<String>Files. lines(Path path, Charset cs)从文件中读取所有行,如Stream。static Stream<Path>Files. list(Path dir)返回一个延迟填充的Stream,其元素是目录中的条目。booleanPathMatcher. matches(Path path)告知给定路径是否匹配此匹配器的模式。static PathFiles. move(Path source, Path target, CopyOption... options)将文件移动或重命名为目标文件。static BufferedReaderFiles. newBufferedReader(Path path)打开文件进行读取,返回BufferedReader以高效方式从文件中读取文本。static BufferedReaderFiles. newBufferedReader(Path path, Charset cs)打开文件进行读取,返回BufferedReader,可用于以高效的方式从文件中读取文本。static BufferedWriterFiles. newBufferedWriter(Path path, Charset cs, OpenOption... options)打开或创建用于写入的文件,返回可用于以高效方式将文本写入文件的BufferedWriter。static BufferedWriterFiles. newBufferedWriter(Path path, OpenOption... options)打开或创建用于写入的文件,返回BufferedWriter以高效方式将文本写入文件。static SeekableByteChannelFiles. newByteChannel(Path path, OpenOption... options)打开或创建文件,返回可搜索的字节通道以访问该文件。static SeekableByteChannelFiles. newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs)打开或创建文件,返回可搜索的字节通道以访问该文件。static DirectoryStream<Path>Files. newDirectoryStream(Path dir)打开一个目录,返回DirectoryStream以遍历目录中的所有条目。static DirectoryStream<Path>Files. newDirectoryStream(Path dir, String glob)打开一个目录,返回DirectoryStream以迭代目录中的条目。static DirectoryStream<Path>Files. newDirectoryStream(Path dir, DirectoryStream.Filter<? super Path> filter)打开一个目录,返回DirectoryStream以迭代目录中的条目。static FileSystemFileSystems. newFileSystem(Path path, ClassLoader loader)构造一个新的FileSystem以访问文件的内容作为文件系统。static InputStreamFiles. newInputStream(Path path, OpenOption... options)打开文件,返回输入流以从文件中读取。static OutputStreamFiles. newOutputStream(Path path, OpenOption... options)打开或创建文件,返回可用于将字节写入文件的输出流。static booleanFiles. notExists(Path path, LinkOption... options)测试此路径所在的文件是否不存在。static StringFiles. probeContentType(Path path)探测文件的内容类型。static byte[]Files. readAllBytes(Path path)从文件中读取所有字节。static List<String>Files. readAllLines(Path path)从文件中读取所有行。static List<String>Files. readAllLines(Path path, Charset cs)从文件中读取所有行。static <A extends BasicFileAttributes>
AFiles. readAttributes(Path path, 类<A> type, LinkOption... options)将文件的属性读取为批量操作。static Map<String,Object>Files. readAttributes(Path path, String attributes, LinkOption... options)将一组文件属性读取为批量操作。static StringFiles. readString(Path path)static StringFiles. readString(Path path, Charset cs)将文件中的所有字符读入字符串,使用指定的charset从字节解码为字符。static PathFiles. readSymbolicLink(Path link)读取符号链接的目标 (可选操作) 。PathPath. relativize(Path other)构造此路径与给定路径之间的相对路径。PathPath. resolve(Path other)根据此路径解析给定路径。default PathPath. resolveSibling(Path other)根据此路径的parent路径解析给定路径。static PathFiles. setAttribute(Path path, String attribute, Object value, LinkOption... options)设置文件属性的值。static PathFiles. setLastModifiedTime(Path path, FileTime time)更新文件的上次修改时间属性。static PathFiles. setOwner(Path path, UserPrincipal owner)更新文件所有者。static PathFiles. setPosixFilePermissions(Path path, Set<PosixFilePermission> perms)设置文件的POSIX权限。static longFiles. size(Path path)返回文件的大小(以字节为单位)。booleanPath. startsWith(Path other)测试此路径是否以给定路径开头。static Stream<Path>Files. walk(Path start, int maxDepth, FileVisitOption... options)通过遍历以给定起始文件为根的文件树,返回Stream,其中包含Path。static Stream<Path>Files. walk(Path start, FileVisitOption... options)通过遍历以给定起始文件为根的文件树,返回Stream,其中包含Path。static PathFiles. walkFileTree(Path start, FileVisitor<? super Path> visitor)走一个文件树。static PathFiles. walkFileTree(Path start, Set<FileVisitOption> options, int maxDepth, FileVisitor<? super Path> visitor)走一个文件树。static PathFiles. write(Path path, byte[] bytes, OpenOption... options)将字节写入文件。static PathFiles. write(Path path, Iterable<? extends CharSequence> lines, Charset cs, OpenOption... options)将文本行写入文件。static PathFiles. write(Path path, Iterable<? extends CharSequence> lines, OpenOption... options)将文本行写入文件。static PathFiles. writeString(Path path, CharSequence csq, Charset cs, OpenOption... options)写一个CharSequence到一个文件。static PathFiles. writeString(Path path, CharSequence csq, OpenOption... options)写一个CharSequence到一个文件。Method parameters in java.nio.file with type arguments of type Path 变量和类型 方法 描述 static Stream<Path>Files. find(Path start, int maxDepth, BiPredicate<Path,BasicFileAttributes> matcher, FileVisitOption... options)通过搜索以给定起始文件为根的文件树中的文件,返回Stream,其中包含Path。static DirectoryStream<Path>Files. newDirectoryStream(Path dir, DirectoryStream.Filter<? super Path> filter)打开一个目录,返回DirectoryStream以迭代目录中的条目。static PathFiles. walkFileTree(Path start, FileVisitor<? super Path> visitor)走一个文件树。static PathFiles. walkFileTree(Path start, Set<FileVisitOption> options, int maxDepth, FileVisitor<? super Path> visitor)走一个文件树。 -
Uses of Path in java.nio.file.spi
Methods in java.nio.file.spi that return Path 变量和类型 方法 描述 abstract PathFileSystemProvider. getPath(URI uri)通过转换给定的URI返回Path对象。PathFileSystemProvider. readSymbolicLink(Path link)读取符号链接的目标。Methods in java.nio.file.spi that return types with arguments of type Path 变量和类型 方法 描述 abstract DirectoryStream<Path>FileSystemProvider. newDirectoryStream(Path dir, DirectoryStream.Filter<? super Path> filter)打开一个目录,返回DirectoryStream以迭代目录中的条目。Methods in java.nio.file.spi with parameters of type Path 变量和类型 方法 描述 abstract voidFileSystemProvider. checkAccess(Path path, AccessMode... modes)检查文件的存在性和可选的可访问性。abstract voidFileSystemProvider. copy(Path source, Path target, CopyOption... options)将文件复制到目标文件。abstract voidFileSystemProvider. createDirectory(Path dir, FileAttribute<?>... attrs)创建一个新目录。voidFileSystemProvider. createLink(Path link, Path existing)为现有文件创建新链接(目录条目)。voidFileSystemProvider. createSymbolicLink(Path link, Path target, FileAttribute<?>... attrs)创建指向目标的符号链接。abstract voidFileSystemProvider. delete(Path path)删除文件。booleanFileSystemProvider. deleteIfExists(Path path)删除文件(如果存在)。abstract <V extends FileAttributeView>
VFileSystemProvider. getFileAttributeView(Path path, 类<V> type, LinkOption... options)返回给定类型的文件属性视图。abstract FileStoreFileSystemProvider. getFileStore(Path path)返回表示文件所在文件存储的FileStore。abstract booleanFileSystemProvider. isHidden(Path path)判断文件是否被视为 隐藏 。abstract booleanFileSystemProvider. isSameFile(Path path, Path path2)测试两个路径是否找到相同的文件。abstract voidFileSystemProvider. move(Path source, Path target, CopyOption... options)将文件移动或重命名为目标文件。AsynchronousFileChannelFileSystemProvider. newAsynchronousFileChannel(Path path, Set<? extends OpenOption> options, ExecutorService executor, FileAttribute<?>... attrs)打开或创建用于读取和/或写入的文件,返回异步文件通道以访问该文件。abstract SeekableByteChannelFileSystemProvider. newByteChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs)打开或创建文件,返回可搜索的字节通道以访问该文件。abstract DirectoryStream<Path>FileSystemProvider. newDirectoryStream(Path dir, DirectoryStream.Filter<? super Path> filter)打开一个目录,返回DirectoryStream以遍历目录中的条目。FileChannelFileSystemProvider. newFileChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs)打开或创建用于读取和/或写入的文件,返回文件通道以访问该文件。FileSystemFileSystemProvider. newFileSystem(Path path, Map<String,?> env)构造一个新的FileSystem以作为文件系统访问文件的内容。InputStreamFileSystemProvider. newInputStream(Path path, OpenOption... options)打开文件,返回输入流以从文件中读取。OutputStreamFileSystemProvider. newOutputStream(Path path, OpenOption... options)打开或创建文件,返回可用于将字节写入文件的输出流。abstract StringFileTypeDetector. probeContentType(Path path)探测给定文件以猜测其内容类型。abstract <A extends BasicFileAttributes>
AFileSystemProvider. readAttributes(Path path, 类<A> type, LinkOption... options)将文件的属性读取为批量操作。abstract Map<String,Object>FileSystemProvider. readAttributes(Path path, String attributes, LinkOption... options)将一组文件属性读取为批量操作。PathFileSystemProvider. readSymbolicLink(Path link)读取符号链接的目标。abstract voidFileSystemProvider. setAttribute(Path path, String attribute, Object value, LinkOption... options)设置文件属性的值。Method parameters in java.nio.file.spi with type arguments of type Path 变量和类型 方法 描述 abstract DirectoryStream<Path>FileSystemProvider. newDirectoryStream(Path dir, DirectoryStream.Filter<? super Path> filter)打开一个目录,返回DirectoryStream以遍历目录中的条目。 -
Uses of Path in java.util
Constructors in java.util with parameters of type Path 构造器 描述 Scanner(Path source)构造一个新的Scanner,它生成从指定文件扫描的值。Scanner(Path source, String charsetName)构造一个新的Scanner,它生成从指定文件扫描的值。Scanner(Path source, Charset charset)构造一个新的Scanner,它可以生成从指定文件扫描的值。 -
Uses of Path in javax.tools
Methods in javax.tools that return Path 变量和类型 方法 描述 default PathStandardJavaFileManager. asPath(FileObject file)返回此文件对象下的路径(如果有)(可选操作)。PathStandardJavaFileManager.PathFactory. getPath(String first, String... more)将路径字符串或从路径字符串连接时的字符串序列转换为Path。Methods in javax.tools that return types with arguments of type Path 变量和类型 方法 描述 default Iterable<? extends Path>StandardJavaFileManager. getLocationAsPaths(JavaFileManager.Location location)返回与给定位置关联的搜索路径。Methods in javax.tools with parameters of type Path 变量和类型 方法 描述 default Iterable<? extends JavaFileObject>StandardJavaFileManager. getJavaFileObjects(Path... paths)返回表示给定路径的文件对象。Method parameters in javax.tools with type arguments of type Path 变量和类型 方法 描述 default Iterable<? extends JavaFileObject>StandardJavaFileManager. getJavaFileObjectsFromPaths(Iterable<? extends Path> paths)返回表示给定路径的文件对象。default voidStandardJavaFileManager. setLocationForModule(JavaFileManager.Location location, String moduleName, Collection<? extends Path> paths)将给定的搜索路径与给定的模块和位置相关联,该模块和位置必须是面向模块的或输出位置。default voidStandardJavaFileManager. setLocationFromPaths(JavaFileManager.Location location, Collection<? extends Path> paths)将给定的搜索路径与给定位置相关联。 -
Uses of Path in jdk.jfr
Methods in jdk.jfr that return Path 变量和类型 方法 描述 PathRecording. getDestination()返回目标文件,其中记录停止时写入记录数据,如果未设置目标,则null。Methods in jdk.jfr with parameters of type Path 变量和类型 方法 描述 static ConfigurationConfiguration. create(Path path)从文件中读取配置。voidRecording. dump(Path destination)将记录数据写入文件。voidRecording. setDestination(Path destination)设置在记录停止时写入数据的位置,如果不要转储数据,则设置null。 -
Uses of Path in jdk.jfr.consumer
Methods in jdk.jfr.consumer with parameters of type Path 变量和类型 方法 描述 static List<RecordedEvent>RecordingFile. readAllEvents(Path path)返回文件中所有事件的列表。Constructors in jdk.jfr.consumer with parameters of type Path 构造器 描述 RecordingFile(Path file)创建录制文件。 -
Uses of Path in jdk.nashorn.api.tree
Methods in jdk.nashorn.api.tree with parameters of type Path 变量和类型 方法 描述 CompilationUnitTreeParser. parse(Path path, DiagnosticListener listener)不推荐使用,要删除:此API元素将在以后的版本中删除。解析源路径并返回编译单元树
-