Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
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 355 of file tarfile.py.


Constructor & Destructor Documentation

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

Definition at line 361 of file tarfile.py.

00361 
00362     def __init__(self, name, mode):
00363         mode = {
00364             "r": os.O_RDONLY,
00365             "w": os.O_WRONLY | os.O_CREAT | os.O_TRUNC,
00366         }[mode]
00367         if hasattr(os, "O_BINARY"):
00368             mode |= os.O_BINARY
00369         self.fd = os.open(name, mode, 0o666)

Here is the caller graph for this function:


Member Function Documentation

Definition at line 370 of file tarfile.py.

00370 
00371     def close(self):
00372         os.close(self.fd)

Here is the caller graph for this function:

def tarfile._LowLevelFile.read (   self,
  size 
)

Definition at line 373 of file tarfile.py.

00373 
00374     def read(self, size):
00375         return os.read(self.fd, size)

Here is the caller graph for this function:

def tarfile._LowLevelFile.write (   self,
  s 
)

Definition at line 376 of file tarfile.py.

00376 
00377     def write(self, s):
00378         os.write(self.fd, s)


Member Data Documentation

Definition at line 368 of file tarfile.py.


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