Updated methods to help with the dictionary clean up.

This commit is contained in:
amontano 2005-02-06 23:19:44 +00:00
parent 96d0d0d9d0
commit a82afad92c
6 changed files with 128 additions and 54 deletions

View file

@ -113,6 +113,19 @@ public class ByteDictionarySource extends DictionarySource
return dicts[i];
}
public int getDicts()
{
int i;
BitDictionarySource availableDicts = new BitDictionarySource();
if (dicts == null) return 0;
for (i=0; i< dicts.length; i++)
availableDicts.add(dicts[i]);
return availableDicts.getDicts();
}
public void dubDef(int n)
{
BitDictionarySource newDicts[] = new BitDictionarySource[dicts.length+1];