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
Recordobject representing a structured document, or a folder.By setting the
Streamobject is instantiated. These.Streamobjectcan be used to store data for an application. Associated with the URLStreamorRecorddefault ofStreamdifferent, instantiatedStreamby default, it is not associated with the base source.By opening the connection with
Recordthe default associated with the objectStreamobject. openRecordcan get the same informationas theRecordgets 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 Description Cancel the right Close Converts a specified number of characters / bits from a Send the contents of the Load the contents of the file Open From a binary From a text Put one Sets the current position to the end of the stream (EOS) Skip a line when reading a text stream. Write binary data to a binary Write character data to a text 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. |