Back to index

moin  1.9.0~rc2
Public Member Functions | Public Attributes
MoinMoin.support.tarfile._LowLevelFile Class Reference

List of all members.

Public Member Functions

def __init__
def close
def read
def write

Public Attributes

 fd

Detailed Description

Low-level file object. Supports reading and writing.
   It is used instead of a regular file object for streaming
   access.

Definition at line 306 of file tarfile.py.


Constructor & Destructor Documentation

def MoinMoin.support.tarfile._LowLevelFile.__init__ (   self,
  name,
  mode 
)

Definition at line 312 of file tarfile.py.

00312 
00313     def __init__(self, name, mode):
00314         mode = {
00315             "r": os.O_RDONLY,
00316             "w": os.O_WRONLY | os.O_CREAT | os.O_TRUNC,
00317         }[mode]
00318         if hasattr(os, "O_BINARY"):
00319             mode |= os.O_BINARY
00320         self.fd = os.open(name, mode)


Member Function Documentation

Definition at line 321 of file tarfile.py.

00321 
00322     def close(self):
00323         os.close(self.fd)

Here is the caller graph for this function:

def MoinMoin.support.tarfile._LowLevelFile.read (   self,
  size 
)

Definition at line 324 of file tarfile.py.

00324 
00325     def read(self, size):
00326         return os.read(self.fd, size)

Here is the caller graph for this function:

Definition at line 327 of file tarfile.py.

00327 
00328     def write(self, s):
00329         os.write(self.fd, s)

Here is the caller graph for this function:


Member Data Documentation

Definition at line 319 of file tarfile.py.


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