zio.blocks.streams.io.Writer
See theWriter companion class
Companion object for Writer. Provides factory constructors for common sinks: closed, single, limited, fromOutputStream, and fromWriter.
Attributes
- Companion
-
class
- Source
-
Writer.scala
- Graph
-
- Supertypes
-
trait Matchable
class Any
- Self type
-
Members list
A pre-closed writer that rejects all writes.
A pre-closed writer that rejects all writes.
Attributes
- Source
-
Writer.scala
Wraps a java.io.OutputStream as a Writer[Byte]. Calling close() flushes and closes the underlying stream.
Wraps a java.io.Writer as a Writer[Char]. Calling close() flushes and closes the underlying writer.
Wraps a java.io.Writer as a Writer[Char]. Calling close() flushes and closes the underlying writer.
Attributes
- Source
-
Writer.scala
A writer that accepts at most n elements from inner, then auto-closes. The dual of Stream.take.
A writer that accepts at most n elements from inner, then auto-closes. The dual of Stream.take.
Attributes
- Source
-
Writer.scala
A writer that accepts exactly one element, then auto-closes. The dual of Reader.single.