Uses of Interface
java.nio.channels.ReadableByteChannel
| Package | Description |
|---|---|
| java.nio.channels | |
| java.util |
-
Uses of ReadableByteChannel in java.nio.channels
Subinterfaces of ReadableByteChannel in java.nio.channels Modifier and Type Interface Description interfaceByteChannelA ByteChannel is both readable and writable.interfaceScatteringByteChannelThe interface for channels that can read data into a set of buffers in a single operation.Classes in java.nio.channels that implement ReadableByteChannel 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.SourceChannelReadable source channel used to read from a pipe.classSocketChannelASocketChannelis a selectable channel that provides a partial abstraction of stream connecting socket.Methods in java.nio.channels that return ReadableByteChannel Modifier and Type Method Description static ReadableByteChannelChannels. newChannel(InputStream inputStream)Returns a readable channel on the given input stream.Methods in java.nio.channels with parameters of type ReadableByteChannel Modifier and Type Method Description static InputStreamChannels. newInputStream(ReadableByteChannel channel)Returns an input stream on the given channel.static ReaderChannels. newReader(ReadableByteChannel channel, String charsetName)Returns a reader that decodes bytes from a channel.static ReaderChannels. newReader(ReadableByteChannel channel, CharsetDecoder decoder, int minBufferCapacity)Returns a reader that decodes bytes from a channel.abstract longFileChannel. transferFrom(ReadableByteChannel src, long position, long count)Reads up tocountbytes fromsrcand stores them in this channel's file starting atposition. -
Uses of ReadableByteChannel in java.util
Constructors in java.util with parameters of type ReadableByteChannel Constructor Description Scanner(ReadableByteChannel src)Creates aScannerwith the specifiedReadableByteChannelas input.Scanner(ReadableByteChannel src, String charsetName)Creates aScannerwith the specifiedReadableByteChannelas input.