Class TCastleTextWriter

Unit

Declaration

type TCastleTextWriter = class(TCastleTextReaderWriter)

Description

Write to a stream, treating it as a text file with UTF-8 encoding.

You can write to an arbitrary TStream instance, or you can write to an URL. Writing to an URL supports all URL protocols supported by UrlSaveStream, which for now doesn't include much: only file protocol. But it will produce a nice exception message in case of unsupported URL protocol.

Source: files/castledownload_text.inc (line 127).

Hierarchy

Show Additional Members:

Overview

Methods

Public constructor Create(const AStream: TStream; const AOwnsStream: boolean); overload;
Public destructor Destroy; override;
Public constructor Create(const Url: String); overload;
Public procedure Write(const S: string); overload;
Public procedure Write(const S: string; const Args: array of const); overload;
Public procedure Writeln(const S: string = ''); overload;
Public procedure Writeln(const S: string; const Args: array of const); overload;

Description

Methods

Public constructor Create(const AStream: TStream; const AOwnsStream: boolean); overload;

This item is declared in ancestor TCastleTextReaderWriter.

Open a stream. If AOwnsStream then in destructor we will free given AStream object.

Source: files/castledownload_text.inc (line 28).

Public destructor Destroy; override;

This item is declared in ancestor TCastleTextReaderWriter.

This item has no description.

Source: files/castledownload_text.inc (line 29).

Public constructor Create(const Url: String); overload;

This item has no description.

Source: files/castledownload_text.inc (line 129).

Public procedure Write(const S: string); overload;

This item has no description.

Source: files/castledownload_text.inc (line 130).

Public procedure Write(const S: string; const Args: array of const); overload;

This item has no description.

Source: files/castledownload_text.inc (line 131).

Public procedure Writeln(const S: string = ''); overload;

This item has no description.

Source: files/castledownload_text.inc (line 132).

Public procedure Writeln(const S: string; const Args: array of const); overload;

This item has no description.

Source: files/castledownload_text.inc (line 133).


Generated by PasDoc 1.0.4.