Package pyffi :: Module object_models :: Class ArchiveFileFormat :: Class Data
[hide private]
[frames] | no frames]

Class Data

source code

            object --+            
                     |            
utils.graph.DetailNode --+        
                         |        
    utils.graph.GlobalNode --+    
                             |    
               FileFormat.Data --+
                                 |
                                ArchiveFileFormat.Data

Base class for representing archive data. Override this class to implement incremental reading and writing.
Instance Methods [hide private]
 
__init__(self, name=None, mode=None, fileobj=None)
Sets _stream and _mode.
source code
 
get_members(self) source code
 
set_members(self, members) source code
 
close(self) source code
 
read(self, stream)
Read data of particular format from stream.
source code
 
write(self, stream)
Write data of particular format to stream.
source code

Inherited from FileFormat.Data: inspect

Inherited from utils.graph.GlobalNode: get_global_child_edge_types, get_global_child_nodes, get_global_display, get_global_iterator

Inherited from utils.graph.DetailNode: get_detail_child_edge_types, get_detail_child_names, get_detail_child_nodes, get_detail_display, get_detail_iterator, replace_global_node

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Variables [hide private]
  _stream = None
The file stream associated with the archive.

Inherited from FileFormat.Data: user_version, version

Inherited from FileFormat.Data (private): _byte_order

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, name=None, mode=None, fileobj=None)
(Constructor)

source code 
Sets _stream and _mode.
Overrides: object.__init__

read(self, stream)

source code 
Read data of particular format from stream. Override this method.
Parameters:
  • stream - The file to read from.
Overrides: FileFormat.Data.read
(inherited documentation)

write(self, stream)

source code 
Write data of particular format to stream. Override this method.
Parameters:
  • stream - The file to write to.
Overrides: FileFormat.Data.write
(inherited documentation)