Lines Matching refs:MultiFile
15 The :class:`MultiFile` object enables you to treat sections of a text file as
22 .. class:: MultiFile(fp[, seekable])
25 argument for the :class:`MultiFile` instance to get lines from, such as a file
28 :class:`MultiFile` only ever looks at the input object's :meth:`readline`,
30 want random access to the individual MIME parts. To use :class:`MultiFile` on a
34 It will be useful to know that in :class:`MultiFile`'s view of the world, text
36 MultiFile is designed to support parsing of messages that may have multiple
49 MultiFile Objects
52 A :class:`MultiFile` instance has the following methods:
55 .. method:: MultiFile.readline(str)
65 .. method:: MultiFile.readlines(str)
70 .. method:: MultiFile.read()
76 .. method:: MultiFile.seek(pos[, whence])
82 .. method:: MultiFile.tell()
87 .. method:: MultiFile.next()
94 .. method:: MultiFile.is_data(str)
106 .. method:: MultiFile.push(str)
119 .. method:: MultiFile.pop()
124 .. method:: MultiFile.section_divider(str)
132 .. method:: MultiFile.end_marker(str)
140 Finally, :class:`MultiFile` instances have two public instance variables:
143 .. attribute:: MultiFile.level
148 .. attribute:: MultiFile.last
155 :class:`MultiFile` Example
178 file = multifile.MultiFile(stream)