Uses of Class
java.nio.channels.FileChannel
-
Packages that use FileChannel 软件包 描述 java.io 通过数据流,序列化和文件系统提供系统输入和输出。java.nio.channels 定义通道,表示与能够执行I / O操作的实体的连接,例如文件和套接字; 定义选择器,用于多路复用,非阻塞I / O操作。java.nio.file.spi java.nio.file程序包的服务提供程序类。 -
-
Uses of FileChannel in java.io
Methods in java.io that return FileChannel 变量和类型 方法 描述 FileChannelFileInputStream. getChannel()返回与此文件输入流关联的唯一FileChannel对象。FileChannelFileOutputStream. getChannel()返回与此文件输出流关联的唯一FileChannel对象。FileChannelRandomAccessFile. getChannel()返回与此文件关联的唯一FileChannel对象。 -
Uses of FileChannel in java.nio.channels
Methods in java.nio.channels that return FileChannel 变量和类型 方法 描述 FileChannelFileLock. channel()返回获取此锁定的文件的文件通道。static FileChannelFileChannel. open(Path path, OpenOption... options)打开或创建文件,返回文件通道以访问该文件。static FileChannelFileChannel. open(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs)打开或创建文件,返回文件通道以访问该文件。abstract FileChannelFileChannel. position(long newPosition)设置此通道的文件位置。abstract FileChannelFileChannel. truncate(long size)将此频道的文件截断为给定大小。Constructors in java.nio.channels with parameters of type FileChannel 构造器 描述 FileLock(FileChannel channel, long position, long size, boolean shared)初始化此类的新实例。 -
Uses of FileChannel in java.nio.file.spi
Methods in java.nio.file.spi that return FileChannel 变量和类型 方法 描述 FileChannelFileSystemProvider. newFileChannel(Path path, Set<? extends OpenOption> options, FileAttribute<?>... attrs)Opens or creates a file for reading and/or writing, returning a file channel to access the file.
-