常用工具: 简繁转换 HTML/JS互转 Url编码Escape解析 Unicode编码转换 设为首页 加入收藏夹
更多内容
" id="arctext" class="center" " class="arcinfo center" " id="slistl" class="left" " id="mid_slistl_sch" class="left" " id="mid_slistl_adv" class="left" " id="mid_slistl_adv2" " src="http://www.fzs8.net/d/js/acmsd/middle2.js"
文章正文

ASP Hex 函数

来源:  网络收集  字体:[ ]
站内搜索系统
文章正文

ADO Stream 对象

来源:  网络收集  2007-04-28 00:00:00 字体:[ ]

Stream Object (ADO version 2.5)
记录流对象(ADO 2.5版本)

The ADO Stream Object is used to read, write, and manage a stream of binary data or text.
ADO Stream对象的作用是:对一个二进制数据或文本流进行读取、写入或管理。

A Stream object can be obtained in three ways:
Stream[记录流]对象中可以写在下面三种方法内:

  • From a URL pointing to a document, a folder, or a Record object
    指向一个文档、文件夹或一个记录对象的URL
  • By instantiating a Stream object to store data for your application
    通过一个记录流对象为你的应用程序存储数据
  • By opening the default Stream object associated with a Record object
    打开与一个记录对象相关的默认Sream[记录流]对象

Syntax
语法

objectname.propertyobjectname.method


Properties
属性

Property属性Description描述
CharSetSets or returns a value that specifies into which character set the contents are to be translated. This property is only used with text Stream objects (type is adTypeText)
在字符属性[character set]中设置或返回一个用于转换内容字符的值。该属性尽可以用在文本记录流中(类型为adTypeText)
EOSReturns whether the current position is at the end of the stream or not
返回当前位置是否位于记录流最末端
LineSeparatorSets or returns the line separator character used in a text Stream object
设置或返回在一个文本记录流对象中使用的分割字符
ModeSets or returns the available permissions for modifying data
设置或返回数据修改所允许的权限
PositionSets or returns the current position (in bytes) from the beginning of a Stream object
设置或返回位于记录流的当前位置(从记录流对象的起始位置算起,以字节数的形式表示)
SizeReturns the size of an open Stream object
返回一个已经打开的记录流对象的尺寸大小
StateReturns a value describing if the Stream object is open or closed
返回一个用于描述记录流对象是否被打开或关闭的值
TypeSets or returns the type of data in a Stream object
设置或返回记录流对象中的数据类型

Methods
方法

Method方法Description描述
CancelCancels an execution of an Open call on a Stream object
取消执行打开记录流对象请求的指令
CloseCloses a Stream object
关闭一个记录流对象
CopyToCopies a specified number of characters/bytes from one Stream object into another Stream object
从一个记录流对象中复制制定数目的字符/字节数到另一个记录流对象中
FlushSends the contents of the Stream buffer to the associated underlying object
将记录流缓冲内容发送至与之相关的下一个对象中
LoadFromFileLoads the contents of a file into a Stream object
将一个文件的内容装载入一个记录流对象中
OpenOpens a Stream object
打开一个记录流对象
ReadReads the entire stream or a specified number of bytes from a binary Stream object
从一个二进制记录流对象中读出指定字节数的内容或整段记录流
ReadTextReads the entire stream, a line, or a specified number of characters from a text Stream object
从一个文本记录流对象中读出一行或是指定数量的字符或是整段记录流内容
SaveToFileSaves the binary contents of a Stream object to a file
将记录流对象的二进制内容保存到一个文件中
SetEOSSets the current position to be the end of the stream (EOS)
将当前位置设置为记录流的末尾
SkipLineSkips a line when reading a text Stream
当读取一个文本记录流对象时跳过一行
WriteWrites binary data to a binary Stream object
将二进制数据写到二进制记录流对象中
WriteTextWrites character data to a text Stream object
将字符数据写到文本记录流对象中

  
上一篇:ADO Recordset(数据集) 对象
下一篇:SQL 介绍
最新文章
推荐文章
热门文章
版权所有:IT加油站   COPYRIGHT © 2007 WWW.FZS8.NET ALL RIGHTS RESERVED.
闽ICP备08008535号