Uses of Interface
java.nio.channels.ReadableByteChannel
| 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.
|
| java.util |
Contains the collections framework, some internationalization support classes,
a service loader, properties, random number generation, string parsing
and scanning classes, base64 encoding and decoding, a bit array, and
several miscellaneous utility classes.
|
-
Uses of ReadableByteChannel in java.nio.channels
Subinterfaces of ReadableByteChannel in java.nio.channels Modifier and Type Interface Description interfaceByteChannelA channel that can read and write bytes.interfaceScatteringByteChannelA channel that can read bytes into 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 ReadableByteChannel Modifier and Type Class Description classDatagramChannelA selectable channel for datagram-oriented sockets.classFileChannelA channel for reading, writing, mapping, and manipulating a file.static classPipe.SourceChannelA channel representing the readable end of aPipe.classSocketChannelA selectable channel for stream-oriented connecting sockets.Methods in java.nio.channels that return ReadableByteChannel Modifier and Type Method Description static ReadableByteChannelChannels. newChannel(InputStream in)Constructs a channel that reads bytes from the given stream.Methods in java.nio.channels with parameters of type ReadableByteChannel Modifier and Type Method Description static InputStreamChannels. newInputStream(ReadableByteChannel ch)Constructs a stream that reads bytes from the given channel.static ReaderChannels. newReader(ReadableByteChannel ch, String csName)Constructs a reader that decodes bytes from the given channel according to the named charset.static ReaderChannels. newReader(ReadableByteChannel ch, Charset charset)Constructs a reader that decodes bytes from the given channel according to the given charset.static ReaderChannels. newReader(ReadableByteChannel ch, CharsetDecoder dec, int minBufferCap)Constructs a reader that decodes bytes from the given channel using the given decoder.abstract longFileChannel. transferFrom(ReadableByteChannel src, long position, long count)Transfers bytes into this channel's file from the given readable byte channel. -
Uses of ReadableByteChannel in java.util
Constructors in java.util with parameters of type ReadableByteChannel Constructor Description Scanner(ReadableByteChannel source)Constructs a newScannerthat produces values scanned from the specified channel.Scanner(ReadableByteChannel source, String charsetName)Constructs a newScannerthat produces values scanned from the specified channel.Scanner(ReadableByteChannel source, Charset charset)Constructs a newScannerthat produces values scanned from the specified channel.