NioSinks
JVM-only convenience constructors for creating Sink instances that write to NIO ByteBuffers and WritableByteChannels.
Each method creates a sink that drains the stream into the corresponding NIO target.
Attributes
- Source
- NioSinks.scala
- Graph
-
- Supertypes
- Self type
-
NioSinks.type
Members list
Value members
Concrete methods
Creates a sink that writes all stream bytes into a ByteBuffer. Throws BufferOverflowException if the buffer has insufficient remaining capacity.
Creates a sink that writes all stream bytes into a ByteBuffer. Throws BufferOverflowException if the buffer has insufficient remaining capacity.
Attributes
- Source
- NioSinks.scala
Creates a sink that writes all stream Doubles into a ByteBuffer (8 bytes per element). Throws BufferOverflowException if the buffer has insufficient remaining capacity.
Creates a sink that writes all stream Doubles into a ByteBuffer (8 bytes per element). Throws BufferOverflowException if the buffer has insufficient remaining capacity.
Attributes
- Source
- NioSinks.scala
Creates a sink that writes all stream Floats into a ByteBuffer (4 bytes per element). Throws BufferOverflowException if the buffer has insufficient remaining capacity.
Creates a sink that writes all stream Floats into a ByteBuffer (4 bytes per element). Throws BufferOverflowException if the buffer has insufficient remaining capacity.
Attributes
- Source
- NioSinks.scala
Creates a sink that writes all stream Ints into a ByteBuffer (4 bytes per element). Throws BufferOverflowException if the buffer has insufficient remaining capacity.
Creates a sink that writes all stream Ints into a ByteBuffer (4 bytes per element). Throws BufferOverflowException if the buffer has insufficient remaining capacity.
Attributes
- Source
- NioSinks.scala
Creates a sink that writes all stream Longs into a ByteBuffer (8 bytes per element). Throws BufferOverflowException if the buffer has insufficient remaining capacity.
Creates a sink that writes all stream Longs into a ByteBuffer (8 bytes per element). Throws BufferOverflowException if the buffer has insufficient remaining capacity.
Attributes
- Source
- NioSinks.scala
A sink that writes all stream bytes to a java.nio.channels.WritableByteChannel with internal buffering. Does not close the channel.
A sink that writes all stream bytes to a java.nio.channels.WritableByteChannel with internal buffering. Does not close the channel.
Value parameters
- bufSize
-
Internal buffer size in bytes (default 8192).
- ch
-
The channel to write to.
Attributes
- Source
- NioSinks.scala