Implements the minimal functionality required to extract a "Workbook" or "Book" stream (as one big string) from an OLE2 Compound Document file.
Copyright © 2005-2012 Stephen John Machin, Lingfo Pty Ltd
This module is part of the xlrd package, which is released under a BSD-style licence.
Compound document handler.
For more information about this class, see The CompDoc Class.
Magic cookie that should appear in the first 8 bytes of the file.
Compound document handler.
Interrogate the compound document's directory; return the stream as a string if found, otherwise return None.
Interrogate the compound document's directory. If the named stream is not found, (None, 0, 0) will be returned. If the named stream is found and is contiguous within the original byte sequence ("mem") used when the document was opened, then (mem, offset_to_start_of_stream, length_of_stream) is returned. Otherwise a new string is built from the fragments and (new_string, 0, length_of_stream) is returned.