xHarbour Reference Documentation > Class Reference (textmode) xHarbour Developers Network  

TStream()

Abstract class for low-level file data streams.

Sub-classes:

TStreamFileReader()
TStreamFileWriter()

Description

TStream() is an abstract class providing instance variables and methods for the two sub-classes TStreamFileReader() and TStreamFileWriter(). Both classes treat files as low-level streams of data that can be read or written to. The current position of the file pointer is maintained within the TStream object when stream data is read or written to.

TStream() objects are never instantiated directly but have instance variables and methods used in both sub-classes.

Instance variables

:lCanRead
Indicates if stream data can be read.
:lCanWrite
Indicates if stream data can be written to.
:nLength
Numeric length of the stream in bytes.
:nPosition
Numeric position of file pointer.

Methods

:copyTo( <oTStreamFileWriter> ) --> self
Copies a stream of data to a TStreamFileWriter object.

Info

See also:FileReader(), FileWriter(), TStreamFileReader(), TStreamFileWriter()
Category: Object functions , xHarbour extensions
Header:fileio.ch
Source:rtl\stream.prg
LIB:lib\xhb.lib
DLL:dll\xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe