ostream.writeShort(treeLevelOrder.length); for (int i = 0; i < treeLevelOrder.length; i++)
for (int i = 0; i < maxDepth; i++) {
	public void write(DataOutput ostream) throws IOException {		ostream.writeUTF(fileName);		ostream.writeInt(docId);		ostream.writeInt(children);		ostream.writeInt(maxDepth);		ostream.writeShort(treeLevelOrder.length);		for (int i = 0; i < treeLevelOrder.length; i++)			ostream.writeInt(treeLevelOrder[i]);		ostream.writeShort(treeLevelStartPoints.length);		for (int i = 0; i < treeLevelStartPoints.length; i++)			ostream.writeLong(treeLevelStartPoints[i]);		((DocumentTypeImpl) docType).write(ostream);		permissions.write(ostream);		//symbols.write(ostream);	}