2.2.20. ADO Stream object

发布时间 : 2025-10-25 13:35:18 UTC      

Page Views: 9 views

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.

《地理信息系统原理、技术与方法》  97

最近几年来,地理信息系统无论是在理论上还是应用上都处在一个飞速发展的阶段。 GIS被应用于多个领域的建模和决策支持,如城市管理、区划、环境整治等等,地理信息成为信息时代重要的组成部分之一; “数字地球”概念的提出,更进一步推动了作为其技术支撑的GIS的发展。 与此同时,一些学者致力于相关的理论研究,如空间感知、空间数据误差、空间关系的形式化等等。 这恰好说明了地理信息系统作为应用技术和学科的两个方面,并且这两个方面构成了相互促进的发展过程。