NioReaders
JVM-only factory methods for constructing Reader instances backed by NIO ByteBuffers and ReadableByteChannels.
Attributes
- Source
- NioReaders.scala
- Graph
-
- Supertypes
- Self type
-
NioReaders.type
Members list
Value members
Concrete methods
Wraps a ByteBuffer as a Reader[Byte]. Reads from the buffer's current position to its limit. Supports reset() to rewind to the original position.
Wraps a ByteBuffer as a Reader[Byte]. Reads from the buffer's current position to its limit. Supports reset() to rewind to the original position.
Attributes
- Source
- NioReaders.scala
Wraps a ByteBuffer as a Reader[Double] (8 bytes per element).
Wraps a ByteBuffer as a Reader[Float] (4 bytes per element).
Wraps a ByteBuffer as a Reader[Int] (4 bytes per element).
Wraps a ByteBuffer as a Reader[Long] (8 bytes per element).
Wraps a ReadableByteChannel as a buffered Reader[Byte].
Wraps a ReadableByteChannel as a buffered Reader[Byte].
Value parameters
- bufSize
-
Internal read buffer size in bytes (default 8192).
Attributes
- Source
- NioReaders.scala