NioWriters
JVM-only factory methods for constructing Writer instances backed by NIO ByteBuffers and WritableByteChannels.
Attributes
- Source
- NioWriters.scala
- Graph
-
- Supertypes
- Self type
-
NioWriters.type
Members list
Value members
Concrete methods
Wraps a ByteBuffer as a Writer[Byte]. Auto-closes when the buffer is full.
Wraps a ByteBuffer as a Writer[Byte]. Auto-closes when the buffer is full.
Attributes
- Source
- NioWriters.scala
Wraps a ByteBuffer as a Writer[Double] (8 bytes per element).
Wraps a ByteBuffer as a Writer[Float] (4 bytes per element).
Wraps a ByteBuffer as a Writer[Int] (4 bytes per element).
Wraps a ByteBuffer as a Writer[Long] (8 bytes per element).
Wraps a WritableByteChannel as a buffered Writer[Byte].
Wraps a WritableByteChannel as a buffered Writer[Byte].
Closing the returned writer flushes the internal buffer and closes the underlying channel. The writer takes ownership of ch.
Value parameters
- bufSize
-
Internal write buffer size in bytes (default 8192).
Attributes
- Source
- NioWriters.scala