if (info.mFreq >= minNum) { String termText = info.mTerm.text(); if (NumDigits(termText) <= 1) { if (termText.length() > 3 && !termText.equals("")) { outputStream.println("" + info.mFreq + ": " + termText); ret.add(termText); tot++; } } } } } catch (Exception e) {
Iterator iterator = c.iterator(); while (iterator.hasNext()) { MailboxIndex.AdminInterface.TermInfo info = (MailboxIndex.AdminInterface.TermInfo)iterator.next();  if (tot > maxNum) { return; }   if (info.mFreq >= minNum) { String termText = info.mTerm.text(); if (NumDigits(termText) <= 1) { if (termText.length() > 3 && !termText.equals("")) { outputStream.println("" + info.mFreq + ": " + termText); ret.add(termText); tot++; } } } } } catch (Exception e) {
	public void getTerms(int mailboxId, String field, int minNum, int maxNum, Collection ret) throws IOException, ServiceException	{//        MailboxIndex searcher = Indexer.GetInstance().getMailboxIndex(mailboxId);//        MailboxIndex searcher = Mailbox.getMailboxById(mailboxId).getMailboxIndex();				MailboxIndex.AdminInterface admin = null;						try {//			Collection c = new ArrayList();			Collection c = new TreeSet(new MailboxIndex.AdminInterface.TermInfo.FreqComparator());            Mailbox mbox = MailboxManager.getInstance().getMailboxById(mailboxId);            admin = mbox.getMailboxIndex().getAdminInterface();                        admin.enumerateTerms(c, field);//            int numDocs = admin.numDocs();            //            double minFlt = minNum / 100000.0;//            double maxFlt = maxNum / 100000.0;//            outputStream.println("minFlt = "+minFlt+" max="+maxFlt);            //            double scaledMin = minFlt * numDocs;//            double scaledMax = maxFlt * numDocs;//			outputStream.println("Showing all terms with frequencies between "+scaledMin+" and "+scaledMax);                        int tot = 0;            			Iterator iterator = c.iterator();			while (iterator.hasNext()) {				MailboxIndex.AdminInterface.TermInfo info = 					(MailboxIndex.AdminInterface.TermInfo)iterator.next();								if (tot > maxNum) {					return;				}//				if ((info.mFreq >= scaledMin) && (info.mFreq<=scaledMax)) {				if (info.mFreq >= minNum) {					String termText = info.mTerm.text();					if (NumDigits(termText) <= 1) {						if (termText.length() > 3 && !termText.equals("")) {							outputStream.println("" + info.mFreq + ": " + termText);							ret.add(termText);							tot++;						}					}				}			}			} catch (Exception e) {            outputStream.println("Caught "+ExceptionToString.ToString(e));		} finally {            if (admin!=null) {                admin.close();            }		}	} 