2.2.20. ADO Stream object

发布时间 :2025-10-25 12:23:18 UTC      

Stream object (ADO version 2.5)

ADO Stream object is used to read and write and to process binary data or text streams.

Stream objects can be obtained in three ways:

  • By pointing to the URL of an object (usually a file) containing binary or textual data. This object can be a simple document, a Record object representing a structured document, or a folder.

  • By setting the Stream object is instantiated. These. Stream objectcan be used to store data for an application. Associated with the URL Stream or Record default of Stream different, instantiated Stream by default, it is not associated with the base source.

  • By opening the connection with Record the default associated with the object Stream object. open Record can get the same informationas the Record gets or sets the default stream associated with the Simply open the stream to delete a round trip.

Grammar

objectname.property
objectname.method

Attribute

Attribute

Description

CharSet

Specifies the character set used to store the Stream.

EOS

Returns whether the current position is at the end of the stream.

LineSeparator

Sets or returns the line break used in the text Stream object.

Mode

Sets or returns the available permissions for modifying data.

Position

Sets or returns the current position, in bytes, starting from the Stream object.

Size

Returns the size of an open Stream object.

State

Returns a value that describes whether Stream is on or off.

Type

Sets or returns the type of data in the Stream object.

Method

Method

Description

Cancel

Cancel the right Stream object’s Open the execution of the call.

Close

Close Stream object.

CopyTo

Converts a specified number of characters / bits from a Stream object to another Stream object.

Flush

Send the contents of the Stream buffer to the associated lower level object.

LoadFromFile

Load the contents of the file Stream object.

Open

Open Stream object.

Read

From a binary Stream object reads the entire stream or the specified number of bytes.

ReadText

From a text Stream all streams, rows, or the specified number of bytes are read in the.

SaveToFile

Put one Stream saves the binary contents of the object to a file.

SetEOS

Sets the current position to the end of the stream (EOS)

SkipLine

Skip a line when reading a text stream.

Write

Write binary data to a binary Stream object.

WriteText

Write character data to a text Stream object.

Principles, Technologies, and Methods of Geographic Information Systems  102

In recent years, Geographic Information Systems (GIS) have undergone rapid development in both theoretical and practical dimensions. GIS has been widely applied for modeling and decision-making support across various fields such as urban management, regional planning, and environmental remediation, establishing geographic information as a vital component of the information era. The introduction of the “Digital Earth” concept has further accelerated the advancement of GIS, which serves as its technical foundation. Concurrently, scholars have been dedicated to theoretical research in areas like spatial cognition, spatial data uncertainty, and the formalization of spatial relationships. This reflects the dual nature of GIS as both an applied technology and an academic discipline, with the two aspects forming a mutually reinforcing cycle of progress.

Powered by Django & PostgreSQL (with PostGIS)