Uses of Interface
java.nio.channels.WritableByteChannel
| Package | Description |
|---|---|
| java.nio.channels |
-
Uses of WritableByteChannel in java.nio.channels
Subinterfaces of WritableByteChannel in java.nio.channels Modifier and Type Interface Description interfaceByteChannelA ByteChannel is both readable and writable.interfaceGatheringByteChannelThe interface for channels that can write a set of buffers in a single operation.Classes in java.nio.channels that implement WritableByteChannel Modifier and Type Class Description classDatagramChannelADatagramChannelis a selectable channel that represents a partial abstraction of a datagram socket.classFileChannelAn abstract channel type for interaction with a platform file.static classPipe.SinkChannelWritable sink channel used to write to a pipe.classSocketChannelASocketChannelis a selectable channel that provides a partial abstraction of stream connecting socket.Methods in java.nio.channels that return WritableByteChannel Modifier and Type Method Description static WritableByteChannelChannels. newChannel(OutputStream outputStream)Returns a writable channel on the given output stream.Methods in java.nio.channels with parameters of type WritableByteChannel Modifier and Type Method Description static OutputStreamChannels. newOutputStream(WritableByteChannel channel)Returns an output stream on the given channel.static WriterChannels. newWriter(WritableByteChannel channel, String charsetName)Returns a writer that encodes characters with the specifiedencoderand sends the bytes to the specified channel.static WriterChannels. newWriter(WritableByteChannel channel, CharsetEncoder encoder, int minBufferCapacity)Returns a writer that encodes characters with the specifiedencoderand sends the bytes to the specified channel.abstract longFileChannel. transferTo(long position, long count, WritableByteChannel target)Reads up tocountbytes from this channel's file starting atpositionand writes them totarget.