code: public String dequeue() throws IOException {
  		String[] names = path.list();
  		for(String name : names) {
  			File tmp = new File(path,name);
  			if(tmp.isFile()) {
  				if(tmp.delete()) {
  					return name;
  				} else {
  					throw new IOException("Unable to dequeue/delete (" + 
  							tmp.getAbsolutePath());
  				}
  			}
  		}
  		return null;
  	}
docs: /* (non-Javadoc)
  @see org.archive.wayback.resourcestore.indexer.IndexQueue#dequeue()