User Tools

Site Tools


api:dk11:delphi:gisstreams.tgis_stream

TGIS_Stream class

DK11 for Delphi | GisStreams.TGIS_Stream | Classes | Constructors | Methods | Properties

Enhanced stream. Added number of functions like ReadLine, ReadToken, ReadString, WriteString.

Available also on: .NET | Java.

Syntax

// Delphi
type
  TGIS_Stream = class( TGIS_BaseStream )
  end;
// C++ Builder
class PASCALIMPLEMENTATION TGIS_Stream : public TGIS_BaseStream
{
};

Inheritance

→ TStream → TGIS_BaseStream

Constructors

Inherited Overrides Protected
Name Visibility Description
Create public Create a stream object.
Create(TGIS_ReadWriteEvent; TGIS_ReadWriteEvent) public Create a stream object.
Destroy public Standard destructor.
(Inherited from TGIS_BaseStream)

Methods

Inherited Overrides Protected
Name Visibility Description
Eof public Check if stream reached End Of File.
ReadAsciiString(Integer) public Read string of the width from the stream.
ReadAsciiString(String; Integer) public Read string of the width from the stream.
ReadByte public Read byte.
(Inherited from TGIS_BaseStream)
ReadBytesCnt(TBytes; Integer) public Read array of bytes
ReadBytesCnt(TBytes; Integer; Integer) public Read array of bytes into a buffer at given offset.
ReadBytesSafe public Read array of bytes
ReadCardinal public Read cardinal.
(Inherited from TGIS_BaseStream)
ReadDouble public Read short double.
(Inherited from TGIS_BaseStream)
ReadInt64 public Read int64.
(Inherited from TGIS_BaseStream)
ReadInteger public Read integer.
(Inherited from TGIS_BaseStream)
ReadLine public Read line from text file up to CR.
ReadShortInt public Read short integer.
(Inherited from TGIS_BaseStream)
ReadSingle public Read single.
(Inherited from TGIS_BaseStream)
ReadSmallInt public Read smallint.
(Inherited from TGIS_BaseStream)
ReadString(Integer) public Read string of the width from the stream.
ReadString(String; Integer) public Read string of the width from the stream.
ReadToken public Read token (delimited by a space char) from text file.
ReadWord public Read word.
(Inherited from TGIS_BaseStream)
WriteByte public Write byte.
(Inherited from TGIS_BaseStream)
WriteBytes public Write array of bytes
WriteBytesCnt public Write array of bytes
WriteCardinal public Write cardinal.
(Inherited from TGIS_BaseStream)
WriteDouble public Write double.
(Inherited from TGIS_BaseStream)
WriteInteger public Write integer.
(Inherited from TGIS_BaseStream)
WriteLine public Write text line ended with CR/LF to the stream.
WriteShortInt public Write short integer.
(Inherited from TGIS_BaseStream)
WriteSingle public Write Single.
(Inherited from TGIS_BaseStream)
WriteString public Write a string to the stream.
WriteStringCnt public Write a string to the stream.
WriteVarAsString public Write a variant as a string to the stream.
WriteWord public Write word.
(Inherited from TGIS_BaseStream)

Properties

Inherited Protected
Name Visibility Description
CodePage public Code page of the stream.
FixCodePage public If True then program will try to switch between UTF8 and System Code Page to properly recognize files with improper setup.

Remarks

Available metadata keys:

Metadata Values Default Description
TGIS_Stream.PatrolRead TRUE FALSE TRUE If True, use patrol read to fetch whole file into OS cache.

References

2020/07/31 01:06

Page Tools