public void addEntries(Entry[] entries, boolean force) throws IOException
public void addEntries(Entry[] entries) throws IOException
    public void addEntries(Entry[] entries, boolean force) throws IOException    {        if ( entries != null ) {            if ( !force && IndexReader.indexExists(indexDir) ) {                IndexReader reader = null;                try {                    reader = getReader();                    for (int i = 0; i < entries.length; i++) {                        Entry[] stored = getEntries(entries[i].getUrl(), reader);                        if ( stored.length > 0 )                            throw new DuplicateEntryException(entries[i].getUrl());                    }                } finally {                    if ( reader != null  )                        reader.close();                }            }            storeEntries(entries);        }    }