code: public Iterator<String> iterator() throws IOException
    {
      String list[] = list();
  
      // Avoids NPE when subclasses override list() and
      // possibly return null, e.g. JarPath.
      if (list == null)
        list = new String[0];
  
      return new ArrayIterator(list);
    }
docs: Returns a jdk1.2 Iterator for the contents of this directory.