Uses of Interface
java.nio.channels.WritableByteChannel
-
Packages that use WritableByteChannel 软件包 描述 java.nio.channels 定义通道,其表示与能够执行I / O操作的实体的连接,例如文件和套接字; 定义选择器,用于多路复用,非阻塞I / O操作。 -
-
Uses of WritableByteChannel in java.nio.channels
Subinterfaces of WritableByteChannel in java.nio.channels Modifier and Type 接口 描述 interface
ByteChannel
一个可以读写字节的通道。interface
GatheringByteChannel
可以从缓冲区序列中写入字节的通道。interface
SeekableByteChannel
保持当前 位置并允许更改 位置的字节通道。Classes in java.nio.channels that implement WritableByteChannel Modifier and Type Class 描述 class
DatagramChannel
面向数据报的套接字的可选通道。class
FileChannel
用于读取,写入,映射和操作文件的通道。static class
Pipe.SinkChannel
class
SocketChannel
用于面向流的连接插座的可选通道。Methods in java.nio.channels that return WritableByteChannel Modifier and Type 方法 描述 static WritableByteChannel
Channels. newChannel(OutputStream out)
构造一个向给定流写入字节的通道。Methods in java.nio.channels with parameters of type WritableByteChannel Modifier and Type 方法 描述 static OutputStream
Channels. newOutputStream(WritableByteChannel ch)
构造将字节写入给定通道的流。static Writer
Channels. newWriter(WritableByteChannel ch, String csName)
构造一个根据命名的字符集对字符进行编码的写入程序,并将生成的字节写入给定的通道。static Writer
Channels. newWriter(WritableByteChannel ch, CharsetEncoder enc, int minBufferCap)
构造一个使用给定编码器编码字符的写入器,并将生成的字节写入给定的通道。abstract long
FileChannel. transferTo(long position, long count, WritableByteChannel target)
Transfers bytes from this channel's file to the given writable byte channel.
-