Package yawPyCrypto :: Module _StreamBase :: Class StreamBase
[show private | hide private]
[frames | no frames]

Class StreamBase

object --+
         |
        StreamBase

Known Subclasses:
OutputStream, InputStream

Base class for all streams. This class implements output handling by giving streams the data property, which can be used to retrieve currently available output from a stream. This class should never be instantiated directly.
Method Summary
  __init__(self)
Initialize the stream base by creating the output buffer, which can be retrieved using data.
a new object with type S, a subtype of T __new__(S, ...)
  _checkInst(self)
Instance checking for all functions of this class.
  _StreamBase__getData(self)
Retrieve the data from the output property as a string.
  _writeOutput(self, data)
Append data to the output.

Class Variable Summary
property data
int _fcontinuation
int _fmaxlen
int _fsize
str _fstream

Method Details

__init__(self)
(Constructor)

Initialize the stream base by creating the output buffer, which can be retrieved using data.

__new__(S, ...)

Returns:
a new object with type S, a subtype of T

_checkInst(self)

Instance checking for all functions of this class.

_StreamBase__getData(self)

Retrieve the data from the output property as a string. This resets the output buffer, so you must store the retrieved value somewhere.

_writeOutput(self, data)

Append data to the output.

Class Variable Details

data

Type:
property
Value:
<property object at 0x40232324>                                        

_fcontinuation

Type:
int
Value:
65535                                                                  

_fmaxlen

Type:
int
Value:
65534                                                                  

_fsize

Type:
int
Value:
3                                                                      

_fstream

Type:
str
Value:
'!BH'                                                                  

Generated by Epydoc 1.1 on Sun Aug 17 03:32:35 2003 http://epydoc.sf.net