class · System.IO

TextReader

public class System.IO.TextReader : System.Any

Reads text: code points one at a time, lines, or all of it.

Kind
class
Namespace
System.IO
Assembly
System.Core
Access
public, abstract
Source file
TextIO.ant

Inheritance

Base classes
Any TextReader
Derived types
StreamReader StringReader

Methods

method Peek() -> i32
#

virtual

The next code point without taking it, or -1 at the end.

method Read() -> i32
#

virtual

The next code point, or -1 at the end.

method ReadLine() -> System.String<u8>?
#

virtual

The next line without its line break ("\n" or "\r\n"), or null at the end.

method ReadToEnd() -> System.String<u8>
#

virtual

Everything left.

method Close() -> void
#

virtual

Inherited members (5)

Source

TextReader as Larva HIR, decompiled from its Larva HIR.

System.IO.TextReader.hir
// Reads text: code points one at a time, lines, or all of it.
public class System.IO.TextReader : System.Any
{
    // The next code point without taking it, or -1 at the end.
    method Peek() -> i32
    // The next code point, or -1 at the end.
    method Read() -> i32
    // The next line without its line break ("\n" or "\r\n"), or null at the end.
    method ReadLine() -> System.String<u8>?
    // Everything left.
    method ReadToEnd() -> System.String<u8>
    method Close() -> void
}
Esc