Member group
Create
Declaring type: StreamReader
Module: System.IO
Assembly: System.Runtime.dll
Source file: StreamReader.rvn
Overloads / Variants
Create
static func Create(input: InputStream, encoding: Encoding, leaveOpen: bool = false) -> Result<StreamReader, TextReadError>
Source file: StreamReader.rvn
Creates a wrapper with the supplied encoding and ownership policy.
Parameters
| Name | Type | Description |
|---|---|---|
input |
InputStream | |
encoding |
Encoding | |
leaveOpen |
Boolean |
Return value
Result<StreamReader, TextReadError>
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(input: InputStream, leaveOpen: bool = false) -> Result<StreamReader, TextReadError>
Source file: StreamReader.rvn
Creates a UTF-8 wrapper with explicit ownership of the underlying stream.
Parameters
| Name | Type | Description |
|---|---|---|
input |
InputStream | |
leaveOpen |
Boolean |