Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes Class Reference

List of all members.

Public Member Functions

def __init__
def read
def getcomptype
def close

Public Attributes


Detailed Description

Small proxy class that enables transparent compression
   detection for the Stream interface (mode 'r|*').

Definition at line 554 of file

Constructor & Destructor Documentation

def (   self,

Definition at line 559 of file

00560     def __init__(self, fileobj):
00561         self.fileobj = fileobj
00562         self.buf =

Member Function Documentation

Definition at line 574 of file

00575     def close(self):
00576         self.fileobj.close()
00577 # class StreamProxy

Here is the caller graph for this function:

Definition at line 567 of file

00568     def getcomptype(self):
00569         if self.buf.startswith("\037\213\010"):
00570             return "gz"
00571         if self.buf.startswith("BZh91"):
00572             return "bz2"
00573         return "tar"

def (   self,

Definition at line 563 of file

00564     def read(self, size):
00565 =
00566         return self.buf

Here is the caller graph for this function:

Member Data Documentation

Definition at line 561 of file

Definition at line 560 of file

Definition at line 564 of file

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