class_docstr: OLE container object
  
  This class encapsulates the interface to an OLE 2 structured
  storage file.  Use the listdir and openstream methods to
  access the contents of this file.
  
  Object names are given as a list of strings, one for each subentry
  level.  The root entry should be omitted.  For example, the following
  code extracts all image streams from a Microsoft Image Composer file::
  
      ole = OleFileIO("fan.mic")
  
      for entry in ole.listdir():
          if entry[1:2] == "Image":
              fin = ole.openstream(entry)
              fout = open(entry[0:1], "wb")
              while True:
                  s = fin.read(8192)
                  if not s:
                      break
                  fout.write(s)
  
  You can use the viewer application provided with the Python Imaging
  Library to view the resulting files (which happens to be standard
  TIFF files).
class_docstr_tok: ["OLE","container","object","This","class","encapsulates","the","interface","to","an","OLE","2","structured","storage","file",".","Use","the","listdir","and","openstream","methods","to","access","the","contents","of","this","file",".","Object","names","are","given","as","a","list","of","strings",",","one","for","each","subentry","level",".","The","root","entry","should","be","omitted",".","For","example",",","the","following","code","extracts","all","image","streams","from","a","Microsoft","Image","Composer","file",":",":","ole","=","OleFileIO","(","``","fan.mic","''",")","for","entry","in","ole.listdir","(",")",":","if","entry","[","1:2","]","==","``","Image","''",":","fin","=","ole.openstream","(","entry",")","fout","=","open","(","entry","[","0:1","]",",","``","wb","''",")","while","True",":","s","=","fin.read","(","8192",")","if","not","s",":","break","fout.write","(","s",")","You","can","use","the","viewer","application","provided","with","the","Python","Imaging","Library","to","view","the","resulting","files","(","which","happens","to","be","standard","TIFF","files",")","."]
docstr: Display a sector in a human-readable form, for debugging purposes
docstr_tok: ["Display","a","sector","in","a","human-readable","form",",","for","debugging","purposes"]
code: def dumpsect(self, sector, firstindex=0):
      """
      Display a sector in a human-readable form, for debugging purposes
      """
      VPL = 8  # number of values per line (8+1 * 8+1 = 81)
      tab = array.array(UINT32, sector)
      if sys.byteorder == "big":
          tab.byteswap()
      nbsect = len(tab)
      nlines = (nbsect + VPL - 1) // VPL
      print("index", end=" ")
      for i in range(VPL):
          print("%8X" % i, end=" ")
      print()
      for l in range(nlines):
          index = l * VPL
          print("%6X:" % (firstindex + index), end=" ")
          for i in range(index, index + VPL):
              if i >= nbsect:
                  break
              sect = tab[i]
              name = "%8X" % sect
              print(name, end=" ")
          print()
  
imports: from __future__ import print_function
  import io
  import sys
  import struct, array, os.path, datetime, logging
label_desc: Use image node_id 10 for calling the OleFileIO obj's underlying member method code with example usage: obj.dumpsect(sector, firstindex) without return types