Member group
Create
Declaring type: StreamWriter
Module: System.IO
Assembly: System.Runtime.dll
Source file: StreamWriter.rvn
Overloads / Variants
Create
static func Create(output: OutputStream, encoding: Encoding, leaveOpen: bool = false) -> Result<StreamWriter, StreamError>
Source file: StreamWriter.rvn
Creates a wrapper with the supplied encoding and ownership policy.
Parameters
| Name | Type | Description |
|---|---|---|
output |
OutputStream | |
encoding |
Encoding | |
leaveOpen |
Boolean |
Return value
Result<StreamWriter, StreamError>
Remarks
Current initialization is infallible for valid providers; decoding and I/O errors occur during operations. No input is read or output written. Use one buffering wrapper per stream direction.
Create
static func Create(output: OutputStream, leaveOpen: bool = false) -> Result<StreamWriter, StreamError>
Source file: StreamWriter.rvn
Creates a UTF-8 wrapper with explicit ownership of the underlying stream.
Parameters
| Name | Type | Description |
|---|---|---|
output |
OutputStream | |
leaveOpen |
Boolean |