OpenQuizz
Une application de gestion des contenus pédagogiques
Git.CatFileContentStream Class Reference
Inheritance diagram for Git.CatFileContentStream:
Collaboration diagram for Git.CatFileContentStream:

Public Member Functions

def __init__ (self, size, stream)
 
def read (self, size=-1)
 
def readline (self, size=-1)
 
def readlines (self, size=-1)
 
def __iter__ (self)
 
def __next__ (self)
 
def next (self)
 
def __del__ (self)
 

Detailed Description

Object representing a sized read-only stream returning the contents of
an object.
It behaves like a stream, but counts the data read and simulates an empty
stream once our sized content region is empty.
If not all data is read to the end of the objects's lifetime, we read the
rest to assure the underlying stream continues to work

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  size,
  stream 
)

◆ __del__()

def __del__ (   self)

Member Function Documentation

◆ __iter__()

def __iter__ (   self)

◆ __next__()

def __next__ (   self)

◆ next()

def next (   self)

◆ read()

def read (   self,
  size = -1 
)

◆ readline()

def readline (   self,
  size = -1 
)

◆ readlines()

def readlines (   self,
  size = -1 
)

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