Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Private Attributes | Static Private Attributes
test_streams.koTestSimpleStream Class Reference

List of all members.

Public Member Functions

def __init__
def close
def available
def readStr
def get_observer
def set_observer
def isNonBlocking

Public Attributes

 data

Private Attributes

 _non_blocking

Static Private Attributes

list _com_interfaces_ = [components.interfaces.nsIInputStream]

Detailed Description

Definition at line 45 of file test_streams.py.


Constructor & Destructor Documentation

Definition at line 49 of file test_streams.py.

00049 
00050     def __init__(self):
00051         self.data=StringIO(test_data)
00052         self._non_blocking = False


Member Function Documentation

Definition at line 56 of file test_streams.py.

00056 
00057     def available( self ):
00058         return self.data.len-self.data.pos

Definition at line 53 of file test_streams.py.

00053 
00054     def close( self ):
00055         pass

Definition at line 64 of file test_streams.py.

00064 
00065     def get_observer( self ):
00066         raise ServerException(nsError.NS_ERROR_NOT_IMPLEMENTED)

Definition at line 70 of file test_streams.py.

00070 
00071     def isNonBlocking(self):
00072         return self._non_blocking

def test_streams.koTestSimpleStream.readStr (   self,
  amount 
)

Definition at line 59 of file test_streams.py.

00059 
00060     def readStr( self, amount):
00061         return self.data.read(amount)

def test_streams.koTestSimpleStream.set_observer (   self,
  param0 
)

Definition at line 67 of file test_streams.py.

00067 
00068     def set_observer( self, param0 ):
00069         raise ServerException(nsError.NS_ERROR_NOT_IMPLEMENTED)


Member Data Documentation

Definition at line 46 of file test_streams.py.

Definition at line 51 of file test_streams.py.

Definition at line 50 of file test_streams.py.


The documentation for this class was generated from the following file: