def parsePalmDOCHeader(self):
    headerfmt = '>HHIHHHH'
    headerlen = calcsize(headerfmt)
    fields = ['Compression', 'Unused', 'text length', 'record count', 'record size', 'Encryption Type', 'Unknown']
    offset = self.records[0]['record Data Offset']
    results = zip(fields, unpack(headerfmt, self.contents[offset:(offset + headerlen)]))
    resultsDict = utils.toDict(results)
    self.offset = (offset + headerlen)
    return resultsDict
def parsePalmDOCHeader(self):
    headerfmt = '>HHIHHHH'
    headerlen = calcsize(headerfmt)
    fields = ['Compression', 'Unused', 'text length', 'record count', 'record size', 'Encryption Type', 'Unknown']
    offset = self.records[0]['record Data Offset']
    results = zip(fields, unpack(headerfmt, self.contents[offset:(offset + headerlen)]))
    resultsDict = utils.toDict(results)
    self.offset = (offset + headerlen)
    return resultsDict