StreamReader Class

Reads character data from a ByteStream . The data is expected to be UTF-8 encoded.

Definition

Line 10 of System.Base/StreamReader.cm

Constructors & Destructor

public StreamReader(const SharedPtr<ByteStream>& stream_)

Member Functions

public nothrow const SharedPtr<ByteStream>& ContainedStream()
public inline nothrow bool EndOfStream() const
private int Get(bool peek)
public int Peek()
public void PutBack(byte b)
public int Read()
public String<char> ReadLine()
public String<char> ReadToEnd()

Member Variables

private int buffer
private bool buffered
private bool eos
private SharedPtr<ByteStream> stream

Constructor& Destructor Details

StreamReader Constructor

public StreamReader(const SharedPtr<ByteStream>& stream_)

Definition
Line 12 of System.Base/StreamReader.cm


Member Function Details

ContainedStream Member Function

public nothrow const SharedPtr<ByteStream>& ContainedStream()

Definition
Line 102 of System.Base/StreamReader.cm


EndOfStream Member Function

public inline nothrow bool EndOfStream()

Definition
Line 106 of System.Base/StreamReader.cm


Get Member Function

private int Get(bool peek)

Definition
Line 81 of System.Base/StreamReader.cm


Peek Member Function

public int Peek()

Definition
Line 21 of System.Base/StreamReader.cm


PutBack Member Function

public void PutBack(byte b)

Definition
Line 76 of System.Base/StreamReader.cm


Read Member Function

public int Read()

Definition
Line 15 of System.Base/StreamReader.cm


ReadLine Member Function

public String<char> ReadLine()

Definition
Line 27 of System.Base/StreamReader.cm


ReadToEnd Member Function

public String<char> ReadToEnd()

Definition
Line 64 of System.Base/StreamReader.cm