ostream.writeShort(treeLevelStartPoints.length); for (int i = 0; i < treeLevelStartPoints.length; i++) ostream.writeLong(treeLevelStartPoints[i]);  ((DocumentTypeImpl) docType).write(ostream); permissions.write(ostream);
} SecurityManager secman = broker.getBrokerPool().getSecurityManager(); if (secman == null) { ostream.writeInt(1); ostream.writeInt(1); } else { User user = secman.getUser(permissions.getOwner()); Group group = secman.getGroup(permissions.getOwnerGroup()); ostream.writeInt(user.getUID()); ostream.writeInt(group.getId()); } ostream.writeByte((byte) permissions.getPermissions());
	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);	}