[Overview][Constants][Types][Classes][Procedures and functions][Variables] |
[Properties (by Name)] [Methods (by Name)] [Events (by Name)]
Stream that stores its data in a string.
Source position: classesh.inc line 704
type TStringStream = class(TStream) |
||
public |
||
constructor Create(); |
|
Creates a new stringstream and sets its initial content. |
function Read(); override; |
|
Reads from the stream. |
function ReadString(); |
|
Reads a string of length Count |
function Seek(); override; |
|
Sets the position in the stream. |
function Write(); override; |
|
Writeimplements the abstract TStream.Writemethod. |
procedure WriteString(); |
|
WriteStringwrites a string to the stream. |
property DataString: String; [r] |
|
Contains the contents of the stream in string form |
end; |
|
Stream that stores its data in a string. |
|
| | ||
|
Base class for streams. |
|
| | ||
TObject |
TStringStreamstores its data in an ansistring. The contents of this string is available as the DataStringproperty. It also introduces some methods to read or write parts of the stringstream's data as a string.
The main purpose of a TStringSTreamis to be able to treat a string as a stream from which can be read.
|
Base class for streams. |
|
|
Contains the contents of the stream in string form |
|
|
Reads a string of length Count |
|
|
WriteStringwrites a string to the stream. |