Uses of Interface
java.nio.channels.WritableByteChannel
-
Packages that use WritableByteChannel Package Description java.nio.channels Defines channels, which represent connections to entities that are capable of performing I/O operations, such as files and sockets; defines selectors, for multiplexed, non-blocking I/O operations. -
-
Uses of WritableByteChannel in java.nio.channels
Subinterfaces of WritableByteChannel in java.nio.channels Modifier and Type Interface Description interfaceByteChannelA channel that can read and write bytes.interfaceGatheringByteChannelA channel that can write bytes from a sequence of buffers.interfaceSeekableByteChannelA byte channel that maintains a current position and allows the position to be changed.Classes in java.nio.channels that implement WritableByteChannel Modifier and Type Class Description classDatagramChannelA selectable channel for datagram-oriented sockets.classFileChannelA channel for reading, writing, mapping, and manipulating a file.static classPipe.SinkChannelA channel representing the writable end of aPipe.classSocketChannelA selectable channel for stream-oriented connecting sockets.Methods in java.nio.channels that return WritableByteChannel Modifier and Type Method Description static WritableByteChannelChannels. newChannel(OutputStream out)Constructs a channel that writes bytes to the given stream.Methods in java.nio.channels with parameters of type WritableByteChannel Modifier and Type Method Description static OutputStreamChannels. newOutputStream(WritableByteChannel ch)Constructs a stream that writes bytes to the given channel.static WriterChannels. newWriter(WritableByteChannel ch, String csName)Constructs a writer that encodes characters according to the named charset and writes the resulting bytes to the given channel.static WriterChannels. newWriter(WritableByteChannel ch, Charset charset)Constructs a writer that encodes characters according to the given charset and writes the resulting bytes to the given channel.static WriterChannels. newWriter(WritableByteChannel ch, CharsetEncoder enc, int minBufferCap)Constructs a writer that encodes characters using the given encoder and writes the resulting bytes to the given channel.abstract longFileChannel. transferTo(long position, long count, WritableByteChannel target)Transfers bytes from this channel's file to the given writable byte channel.
-