def readPrefixArray(self, kind, numberOfTrees):
prefixes = []<EOL>for i in range(numberOfTrees):<EOL><INDENT>if kind==L: alphabet = LiteralAlphabet(i)<EOL>elif kind==I: alphabet = InsertAndCopyAlphabet(i)<EOL>elif kind==D: alphabet = DistanceAlphabet(<EOL>i, NPOSTFIX=self.NPOSTFIX, NDIRECT=self.NDIRECT)<EOL>self.readPrefixCode(alphabet)<EOL>prefixes.append(alphabet)<EOL><DEDENT>self.prefixCodes[kind] = prefixes<EOL>
Read prefix code array