ADO Stream Object
Stream Objects (ADO version 2.5)
ADO Stream object is used to read and process text or binary data stream.
Stream object can be obtained in three ways:
- URL object by pointing to contain binary or text data (usually a file). This object can be a simple document representing Record object or file folder structure of the document.
- By the Stream object is instantiated. The Stream object can be used to store the data for an application. Stream URL with the default associated Stream or Record different instantiated Stream default is not associated with the basic source.
- By opening the associated default Stream object associated with the Record object. You can get the default stream associated with the Record object is opened Record. Simply open the stream can delete a round trip.
grammar
objectname.property
objectname.method
objectname.method
Attributes
Attributes | description |
---|---|
CharSet | Specifies the character set used to store the Stream. |
EOS | Returns whether the current position at the end of the stream. |
LineSeparator | Sets or returns the Stream object used in the text line breaks. |
Mode | Sets or returns available permissions for modifying data. |
Position | Sets or returns the Stream object from the current position at the beginning (in bytes). |
Size | Returns the size of an open Stream object. |
State | Returns a description Stream is open or closed values. |
Type | Sets or returns the type Stream object data. |
method
method | description |
---|---|
Cancel | Call to cancel the execution of the Open Stream object. |
Close | Close a Stream object. |
CopyTo | The specified number of characters / bits copied from a Stream object to another Stream object. |
Flush | Sends Stream contents of the buffer to the underlying object associated. |
LoadFromFile | The contents of the file loaded Stream object. |
Open | Opens a Stream object. |
Read | Read all current or specified number of bytes from a binary Stream object. |
ReadText | The number of bytes read all the streams, or to specify a line from a text Stream object. |
SaveToFile | Save the binary content of a Stream object to a file. |
SetEOS | Set the current position to the end of the stream (EOS) |
SkipLine | Skip a line when reading a text stream. |
Write | The binary data is written to a binary Stream object. |
WriteText | The character data is written to a text Stream object. |