b.b.s.v.BundleReader(object) : class documentation

Part of bzrlib.bundle.serializer.v4 View In Hierarchy

Reader for bundle-format files.

This serves roughly the same purpose as ContainerReader, but acts as a layer on top of it, providing metadata, a semantic name, and a record body

Method __init__ Constructor
Static Method iter_decode Iterate through decoded fragments of the file
Static Method decode_name Decode a name from its container form into a semantic form
Method iter_records Iterate through bundle records
def __init__(self, fileobj, stream_input=True):
Constructor
Parametersfileobja file containing a bzip-encoded container
stream_inputIf True, the BundleReader stream input rather than reading it all into memory at once. Reading it into memory all at once is (currently) faster.
@staticmethod
def iter_decode(fileobj):
Iterate through decoded fragments of the file
@staticmethod
def decode_name(name):
Decode a name from its container form into a semantic form
Unknown Field: retvalcontent_kind, revision_id, file_id
def iter_records(self):
Iterate through bundle records
Returnsa generator of (bytes, metadata, content_kind, revision_id, file_id)
API Documentation for Bazaar, generated by pydoctor at 2014-11-27 00:02:01.